Ver código fonte

Disable focus to fix possible errors

Ruben 5 anos atrás
pai
commit
a2fff6f3fc
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8 0
      PicView/Configs/Styles/Button.xaml

+ 8 - 0
PicView/Configs/Styles/Button.xaml

@@ -5,6 +5,8 @@
         <Setter Property="Background" Value="Transparent" />
         <Setter Property="Foreground" Value="{StaticResource MainColorBrush}" />
         <Setter Property="BorderBrush" Value="Transparent" />
+        <Setter Property="Focusable" Value="False" />
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
         <Setter Property="Template">
             <Setter.Value>
                 <ControlTemplate TargetType="{x:Type Button}">
@@ -22,6 +24,8 @@
         <Setter Property="Background" Value="Transparent" />
         <Setter Property="Foreground" Value="{StaticResource MainColorBrush}" />
         <Setter Property="BorderBrush" Value="Transparent" />
+        <Setter Property="Focusable" Value="False" />
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
         <Setter Property="Template">
             <Setter.Value>
                 <ControlTemplate TargetType="{x:Type CheckBox}">
@@ -41,6 +45,8 @@
         <Setter Property="Padding" Value="15,5" />
         <Setter Property="Height" Value="32" />
         <Setter Property="BorderThickness" Value="0" />
+        <Setter Property="Focusable" Value="False" />
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
         <Setter Property="Template">
             <Setter.Value>
                 <ControlTemplate TargetType="{x:Type Button}">
@@ -68,6 +74,8 @@
         <Setter Property="FontFamily" Value="/PicView;component/Resources/fonts/#Aller" />
         <Setter Property="Width" Value="101" />
         <Setter Property="Height" Value="40" />
+        <Setter Property="Focusable" Value="False" />
+        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
         <Setter Property="BorderThickness" Value="1" />
         <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}" />
         <Setter Property="Effect">