Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2019-10-18 22:40:26 +0300
committerEric Maupin <ermaup@microsoft.com>2019-10-18 22:40:26 +0300
commit695580240ed11a156da49cc601100c2d3c982d17 (patch)
treec96421d56467586b8e8cdf808315f1d06f358209 /Xamarin.PropertyEditing.Windows
parent11763a8c1c4877fe2e007ed9c83c5bebe03a4288 (diff)
[Win] Fix focus border for empty checkboxes
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r--Xamarin.PropertyEditing.Windows/Themes/Resources.xaml12
1 files changed, 3 insertions, 9 deletions
diff --git a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml
index 18deb33..263066e 100644
--- a/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml
+++ b/Xamarin.PropertyEditing.Windows/Themes/Resources.xaml
@@ -305,7 +305,7 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:BoolEditorControl">
- <CheckBox Name="CheckBox" Height="{TemplateBinding Height}" VerticalContentAlignment="Center" AutomationProperties.Name="{Binding Property.Name,Mode=OneTime}" IsChecked="{Binding Value}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" VerticalAlignment="Center" />
+ <CheckBox Name="CheckBox" Height="{TemplateBinding Height}" FocusVisualStyle="{DynamicResource EmptyCheckBoxFocusVisualSquare}" VerticalContentAlignment="Center" AutomationProperties.Name="{Binding Property.Name,Mode=OneTime}" IsChecked="{Binding Value}" IsEnabled="{Binding Property.CanWrite,Mode=OneTime}" VerticalAlignment="Center" />
</ControlTemplate>
</Setter.Value>
</Setter>
@@ -2823,15 +2823,9 @@
</Style>
<Style x:Key="EmptyCheckBoxFocusVisualSquare" TargetType="Control" BasedOn="{StaticResource GenericVisualFocusStyle}">
- <Setter Property="Margin" Value="-3,0,0,0" />
- <Setter Property="Width" Value="22" />
- <Setter Property="Height" Value="21" />
+ <Setter Property="Margin" Value="-1" />
+ <Setter Property="Width" Value="18" />
<Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
-
- <Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource EmptyCheckBoxFocusVisualSquare}" />
</Style>
<Style TargetType="{x:Type ComboBoxItem}">