|
23 | 23 |
|
24 | 24 | <!--Define Views--> |
25 | 25 | <Window.Resources> |
26 | | - |
| 26 | + |
27 | 27 | <!-- Style - Left Menu - Buttons --> |
28 | 28 | <Style x:Key = "buttonStyleLeftMenu" TargetType = "Button"> |
29 | 29 | <Setter Property = "Foreground" Value = "#9f9f9f" /> |
|
112 | 112 | </DataTrigger> |
113 | 113 | <DataTrigger Binding="{Binding IsOnline}" Value="False"> |
114 | 114 | <Setter Property="Visibility" Value="Hidden"/> |
115 | | - </DataTrigger> |
| 115 | + </DataTrigger> |
116 | 116 | </Style.Triggers> |
117 | 117 | </Style> |
118 | 118 |
|
|
278 | 278 | </Border> |
279 | 279 |
|
280 | 280 | <!--Left Menu --> |
281 | | - <Expander IsExpanded="True" ExpandDirection="Left" Grid.Row="1" Grid.Column="0" Grid.RowSpan="8" Foreground="#FFFFFF" BorderBrush="#444444" Background="#1a1a1a" BorderThickness="0 4 1 4" > |
| 281 | + <Expander IsExpanded="True" ExpandDirection="Left" Grid.Row="1" Grid.Column="0" Grid.RowSpan="8" Foreground="#FFFFFF" BorderBrush="#444444" Background="#1a1a1a" BorderThickness="0 4 1 4"> |
282 | 282 | <Expander.Header> |
283 | 283 | <TextBlock Text="Main Menu"> |
284 | 284 | <TextBlock.LayoutTransform> |
285 | 285 | <RotateTransform Angle="90"/> |
286 | 286 | </TextBlock.LayoutTransform> |
287 | 287 | </TextBlock> |
288 | 288 | </Expander.Header> |
289 | | - <Border > |
| 289 | + <ScrollViewer Grid.Row="1" Grid.Column="0" Grid.RowSpan="8" Background="#1a1a1a" HorizontalAlignment="Left" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
| 290 | + <ScrollViewer.Resources> |
| 291 | + <Style TargetType="ScrollBar"> |
| 292 | + <Setter Property="Background" Value="#212121" /> |
| 293 | + <Setter Property="BorderBrush" Value="#9f9f9f" /> |
| 294 | + </Style> |
| 295 | + </ScrollViewer.Resources> |
| 296 | + <Border > |
290 | 297 | <StackPanel> |
291 | 298 |
|
292 | 299 | <!--Left Menu Rigs--> |
293 | | - <Border x:Name="BorderRigs" BorderThickness="0 4 1 4" BorderBrush="#444444" Grid.Row="1" Grid.Column="0" Grid.RowSpan="5" Background="#1a1a1a" Width="270" HorizontalAlignment="Left" VerticalAlignment="Stretch"> |
| 300 | + <Border BorderThickness="0 4 1 4" BorderBrush="#444444" Grid.Row="1" Grid.Column="0" Grid.RowSpan="5" Background="#1a1a1a" Width="270" HorizontalAlignment="Left" VerticalAlignment="Stretch"> |
294 | 301 | <ItemsControl |
295 | 302 | x:Name="MenuStackPanelRigs" |
296 | 303 | Grid.Row="1" |
|
301 | 308 | HorizontalAlignment="Left" |
302 | 309 | VerticalAlignment="Stretch" |
303 | 310 | ItemsSource="{Binding Source={StaticResource MainWindowViewModel}, Path=AccountWorkersList}"> |
304 | | - <ItemsControl.ItemTemplate> |
305 | | - <DataTemplate> |
306 | | - <Button x:Name="WorkerButton" Style="{StaticResource buttonStyleLeftMenu}" Click="WorkerButton_Clicked"> |
307 | | - <Button.CommandParameter> |
308 | | - <MultiBinding Converter="{StaticResource converter}"> |
309 | | - <Binding Path="WorkerName"/> |
310 | | - <Binding Path="CoinType"/> |
311 | | - </MultiBinding> |
312 | | - </Button.CommandParameter> |
313 | | - <Button.Triggers> |
314 | | - <EventTrigger RoutedEvent="MouseEnter"> |
315 | | - <BeginStoryboard> |
316 | | - <Storyboard> |
317 | | - <ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="CadetBlue"/> |
318 | | - </Storyboard> |
319 | | - </BeginStoryboard> |
320 | | - </EventTrigger> |
321 | | - </Button.Triggers> |
322 | | - |
323 | | - <StackPanel Orientation="Horizontal" > |
324 | | - <Label Style="{StaticResource labelStyleLeftMenuGrey}" Content="{Binding WorkerName}" Width="115" /> |
325 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" > |
326 | | - <Border Style="{StaticResource borderStyleLeftMenuGreySmall}"> |
327 | | - <Label Style="{StaticResource labelStyleLeftMenuGreySmall}" Content="{Binding Status}"/> |
328 | | - </Border> |
329 | | - <Border Style="{StaticResource borderStyleHeaderCoinType}" BorderThickness="1" BorderBrush="#444444" Padding="4 0 4 0" Margin="0 2 2 0"> |
330 | | - <Label Foreground="#444444" Padding="4" FontSize="10" Content="{Binding CoinType}"/> |
331 | | - </Border> |
332 | | - <Image Margin="5 1 5 0" Height="20" Width="20" Source="{Binding CoinLogo}" VerticalAlignment="Top" /> |
| 311 | + <ItemsControl.ItemTemplate> |
| 312 | + <DataTemplate> |
| 313 | + <Button x:Name="WorkerButton" Style="{StaticResource buttonStyleLeftMenu}" Click="WorkerButton_Clicked"> |
| 314 | + <Button.CommandParameter> |
| 315 | + <MultiBinding Converter="{StaticResource converter}"> |
| 316 | + <Binding Path="WorkerName"/> |
| 317 | + <Binding Path="CoinType"/> |
| 318 | + </MultiBinding> |
| 319 | + </Button.CommandParameter> |
| 320 | + <Button.Triggers> |
| 321 | + <EventTrigger RoutedEvent="MouseEnter"> |
| 322 | + <BeginStoryboard> |
| 323 | + <Storyboard> |
| 324 | + <ColorAnimation Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="CadetBlue"/> |
| 325 | + </Storyboard> |
| 326 | + </BeginStoryboard> |
| 327 | + </EventTrigger> |
| 328 | + </Button.Triggers> |
| 329 | + |
| 330 | + <StackPanel Orientation="Horizontal" > |
| 331 | + <Label Style="{StaticResource labelStyleLeftMenuGrey}" Content="{Binding WorkerName}" Width="115" /> |
| 332 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" > |
| 333 | + <Border Style="{StaticResource borderStyleLeftMenuGreySmall}"> |
| 334 | + <Label Style="{StaticResource labelStyleLeftMenuGreySmall}" Content="{Binding Status}"/> |
| 335 | + </Border> |
| 336 | + <Border Style="{StaticResource borderStyleHeaderCoinType}" BorderThickness="1" BorderBrush="#444444" Padding="4 0 4 0" Margin="0 2 2 0"> |
| 337 | + <Label Foreground="#444444" Padding="4" FontSize="10" Content="{Binding CoinType}"/> |
| 338 | + </Border> |
| 339 | + <Image Margin="5 1 5 0" Height="20" Width="20" Source="{Binding CoinLogo}" VerticalAlignment="Top" /> |
| 340 | + </StackPanel> |
333 | 341 | </StackPanel> |
334 | | - </StackPanel> |
335 | | - </Button> |
336 | | - </DataTemplate> |
337 | | - </ItemsControl.ItemTemplate> |
338 | | - </ItemsControl> |
| 342 | + </Button> |
| 343 | + </DataTemplate> |
| 344 | + </ItemsControl.ItemTemplate> |
| 345 | + </ItemsControl> |
339 | 346 | </Border> |
340 | 347 |
|
341 | 348 | <!--Left Menu Settings--> |
|
363 | 370 |
|
364 | 371 | </StackPanel> |
365 | 372 | </Border> |
| 373 | + </ScrollViewer> |
366 | 374 | </Expander> |
367 | 375 |
|
368 | 376 | <!--Right Column --> |
|
399 | 407 | Margin="0" |
400 | 408 | VerticalAlignment="Top" |
401 | 409 | VerticalContentAlignment="Top" |
402 | | - HorizontalAlignment="Left" |
| 410 | + HorizontalAlignment="Left" |
403 | 411 | HorizontalContentAlignment="Left" |
404 | 412 | ColumnHeaderStyle="{StaticResource DataGridColumnHeaderStyleGPU}" |
405 | 413 | RowHeaderStyle="{StaticResource DataGridRowHeaderStyleGPU}" |
|
0 commit comments