|
59 | 59 | </ControlTemplate> |
60 | 60 | </Setter.Value> |
61 | 61 | </Setter> |
62 | | - <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
63 | 62 | <Setter Property="VerticalAlignment" Value="Center" /> |
64 | 63 | <Setter Property="Margin" Value="2" /> |
65 | 64 | <Setter Property="RenderTransformOrigin" Value="0.5,0.5" /> |
|
84 | 83 | </ControlTemplate.Resources> |
85 | 84 | <ListView x:Name="PART_ListView" ItemsSource="{TemplateBinding CollectionView}" TextSearch.TextPath="DisplayName" AlternationCount="2" |
86 | 85 | SelectedItem="{Binding SelectedItem, RelativeSource={RelativeSource TemplatedParent}}" VirtualizingPanel.IsVirtualizing="True" |
87 | | - BorderBrush="LightGray" SelectionMode="Single" FocusVisualStyle="{x:Null}" VirtualizingPanel.ScrollUnit="Pixel"> |
| 86 | + BorderBrush="LightGray" SelectionMode="Single" VirtualizingPanel.ScrollUnit="Pixel"> |
88 | 87 | <ListView.Resources> |
89 | 88 | <constructs:TransportObject x:Key="Mode" Value="{Binding Mode, RelativeSource={RelativeSource AncestorType={x:Type views:ItemCollectionManager}}}" /> |
90 | 89 | <constructs:TransportObject x:Key="ChangeDefinitionCommand" Value="{Binding ChangeDefinitionCommand, RelativeSource={RelativeSource AncestorType={x:Type views:ItemCollectionManager}}}" /> |
|
96 | 95 | <Setter.Value> |
97 | 96 | <DataTemplate> |
98 | 97 | <StackPanel Orientation="Horizontal"> |
99 | | - <ContentControl Content="{Binding}" FocusVisualStyle="{x:Null}" /> |
| 98 | + <ContentControl Content="{Binding}" /> |
100 | 99 | <TextBlock FontFamily="Segoe UI Symbol"> |
101 | 100 | <TextBlock.Style> |
102 | 101 | <Style TargetType="{x:Type TextBlock}"> |
|
146 | 145 | </Style> |
147 | 146 | </ListView.ItemContainerStyle> |
148 | 147 | <ListView.ContextMenu> |
149 | | - <ContextMenu FocusVisualStyle="{x:Null}"> |
150 | | - <MenuItem Command="{x:Static constructs:ListViewAutoSize.AutoSizeCommand}" FocusVisualStyle="{x:Null}" /> |
| 148 | + <ContextMenu> |
| 149 | + <MenuItem Command="{x:Static constructs:ListViewAutoSize.AutoSizeCommand}" /> |
151 | 150 | </ContextMenu> |
152 | 151 | </ListView.ContextMenu> |
153 | 152 | <ListView.View> |
|
385 | 384 | <GridViewColumn Width="Auto" views:ItemCollectionManager.PropertyName="IsStolen"> |
386 | 385 | <GridViewColumn.Header> |
387 | 386 | <StackPanel Orientation="Horizontal"> |
388 | | - <CheckBox Margin="2" FocusVisualStyle="{x:Null}" VerticalAlignment="Center" |
| 387 | + <CheckBox Margin="2" VerticalAlignment="Center" |
389 | 388 | IsChecked="{Binding AllItemsStolen, RelativeSource={RelativeSource TemplatedParent}}"> |
390 | 389 | <CheckBox.Style> |
391 | 390 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
|
402 | 401 | </GridViewColumn.Header> |
403 | 402 | <GridViewColumn.CellTemplate> |
404 | 403 | <DataTemplate DataType="{x:Type views:ItemModelBase}"> |
405 | | - <CheckBox FocusVisualStyle="{x:Null}" HorizontalAlignment="Center" IsChecked="{Binding IsStolen}"> |
| 404 | + <CheckBox HorizontalAlignment="Center" IsChecked="{Binding IsStolen}"> |
406 | 405 | <CheckBox.Style> |
407 | 406 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
408 | 407 | <Style.Triggers> |
|
420 | 419 | constructs:ColumnVisibility.IsHidden="{Binding Value, Source={StaticResource Mode}, Converter={StaticResource EqualityConverter}, ConverterParameter={x:Static views:Mode.Stash}}"> |
421 | 420 | <GridViewColumn.Header> |
422 | 421 | <StackPanel Orientation="Horizontal"> |
423 | | - <CheckBox Margin="2" FocusVisualStyle="{x:Null}" VerticalAlignment="Center"> |
| 422 | + <CheckBox Margin="2" VerticalAlignment="Center"> |
424 | 423 | <CheckBox.Style> |
425 | 424 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
426 | 425 | <Style.Triggers> |
|
436 | 435 | </GridViewColumn.Header> |
437 | 436 | <GridViewColumn.CellTemplate> |
438 | 437 | <DataTemplate DataType="{x:Type inventory:ItemModel}"> |
439 | | - <CheckBox FocusVisualStyle="{x:Null}" HorizontalAlignment="Center"> |
| 438 | + <CheckBox HorizontalAlignment="Center"> |
440 | 439 | <CheckBox.Style> |
441 | 440 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
442 | 441 | <Style.Triggers> |
|
454 | 453 | constructs:ColumnVisibility.IsHidden="{Binding Value, Source={StaticResource Mode}, Converter={StaticResource EqualityConverter}, ConverterParameter={x:Static views:Mode.Stash}}"> |
455 | 454 | <GridViewColumn.Header> |
456 | 455 | <StackPanel Orientation="Horizontal"> |
457 | | - <CheckBox Margin="2" FocusVisualStyle="{x:Null}" VerticalAlignment="Center"> |
| 456 | + <CheckBox Margin="2" VerticalAlignment="Center"> |
458 | 457 | <CheckBox.Style> |
459 | 458 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
460 | 459 | <Style.Triggers> |
|
470 | 469 | </GridViewColumn.Header> |
471 | 470 | <GridViewColumn.CellTemplate> |
472 | 471 | <DataTemplate DataType="{x:Type inventory:ItemModel}"> |
473 | | - <CheckBox FocusVisualStyle="{x:Null}" HorizontalAlignment="Center"> |
| 472 | + <CheckBox HorizontalAlignment="Center"> |
474 | 473 | <CheckBox.Style> |
475 | 474 | <Style TargetType="{x:Type CheckBox}" BasedOn="{StaticResource {x:Type CheckBox}}"> |
476 | 475 | <Style.Triggers> |
|
0 commit comments