diff --git a/Fluent.Ribbon/Controls/QuickAccessMenuItem.cs b/Fluent.Ribbon/Controls/QuickAccessMenuItem.cs index f5d1df5df..225adb855 100644 --- a/Fluent.Ribbon/Controls/QuickAccessMenuItem.cs +++ b/Fluent.Ribbon/Controls/QuickAccessMenuItem.cs @@ -237,6 +237,11 @@ public static bool IsSupported(UIElement? element) RibbonControl.Bind(element, result, nameof(UIElement.IsEnabled), UIElement.IsEnabledProperty, BindingMode.OneWay); } + if (result.TryFindResource("Fluent.Ribbon.Styles.FocusVisual") is Style tightFocusVisual) + { + result.FocusVisualStyle = tightFocusVisual; + } + return result; } diff --git a/Fluent.Ribbon/Themes/Controls/BackstageTabControl.xaml b/Fluent.Ribbon/Themes/Controls/BackstageTabControl.xaml index 6465bd10d..0bd7738fb 100644 --- a/Fluent.Ribbon/Themes/Controls/BackstageTabControl.xaml +++ b/Fluent.Ribbon/Themes/Controls/BackstageTabControl.xaml @@ -58,7 +58,7 @@ TargetType="{x:Type Fluent:Button}"> - + @@ -114,7 +114,7 @@ \ No newline at end of file diff --git a/Fluent.Ribbon/Themes/Controls/DropDownButton.xaml b/Fluent.Ribbon/Themes/Controls/DropDownButton.xaml index abf775185..038b3c608 100644 --- a/Fluent.Ribbon/Themes/Controls/DropDownButton.xaml +++ b/Fluent.Ribbon/Themes/Controls/DropDownButton.xaml @@ -56,6 +56,7 @@ + diff --git a/Fluent.Ribbon/Themes/Controls/EmptyFocusStyle.xaml b/Fluent.Ribbon/Themes/Controls/FocusStyles.xaml similarity index 51% rename from Fluent.Ribbon/Themes/Controls/EmptyFocusStyle.xaml rename to Fluent.Ribbon/Themes/Controls/FocusStyles.xaml index 41facb0f0..11282e9ec 100644 --- a/Fluent.Ribbon/Themes/Controls/EmptyFocusStyle.xaml +++ b/Fluent.Ribbon/Themes/Controls/FocusStyles.xaml @@ -4,6 +4,7 @@ TargetType="{x:Type Control}"> + @@ -12,4 +13,20 @@ + + + + \ No newline at end of file diff --git a/Fluent.Ribbon/Themes/Controls/GalleryItem.xaml b/Fluent.Ribbon/Themes/Controls/GalleryItem.xaml index 7338d9a32..b18fb7a1f 100644 --- a/Fluent.Ribbon/Themes/Controls/GalleryItem.xaml +++ b/Fluent.Ribbon/Themes/Controls/GalleryItem.xaml @@ -49,7 +49,7 @@ \ No newline at end of file diff --git a/Fluent.Ribbon/Themes/Controls/MenuItem.xaml b/Fluent.Ribbon/Themes/Controls/MenuItem.xaml index 87d9d2f44..8c9e91893 100644 --- a/Fluent.Ribbon/Themes/Controls/MenuItem.xaml +++ b/Fluent.Ribbon/Themes/Controls/MenuItem.xaml @@ -467,6 +467,7 @@ + diff --git a/Fluent.Ribbon/Themes/Controls/RadioButton.xaml b/Fluent.Ribbon/Themes/Controls/RadioButton.xaml index 97cb47558..fe26c6c80 100644 --- a/Fluent.Ribbon/Themes/Controls/RadioButton.xaml +++ b/Fluent.Ribbon/Themes/Controls/RadioButton.xaml @@ -182,23 +182,7 @@ - - - - - + diff --git a/Fluent.Ribbon/Themes/Controls/RibbonGroupBox.xaml b/Fluent.Ribbon/Themes/Controls/RibbonGroupBox.xaml index 12882abec..b383b2281 100644 --- a/Fluent.Ribbon/Themes/Controls/RibbonGroupBox.xaml +++ b/Fluent.Ribbon/Themes/Controls/RibbonGroupBox.xaml @@ -66,6 +66,7 @@ + diff --git a/Fluent.Ribbon/Themes/Controls/RibbonTabItem.xaml b/Fluent.Ribbon/Themes/Controls/RibbonTabItem.xaml index 22ce4e885..f39d77caa 100644 --- a/Fluent.Ribbon/Themes/Controls/RibbonTabItem.xaml +++ b/Fluent.Ribbon/Themes/Controls/RibbonTabItem.xaml @@ -134,6 +134,9 @@ + + + diff --git a/Fluent.Ribbon/Themes/Controls/RibbonTextBox.xaml b/Fluent.Ribbon/Themes/Controls/RibbonTextBox.xaml index d07d255ef..a2b53af43 100644 --- a/Fluent.Ribbon/Themes/Controls/RibbonTextBox.xaml +++ b/Fluent.Ribbon/Themes/Controls/RibbonTextBox.xaml @@ -78,9 +78,9 @@ - - - + + + diff --git a/Fluent.Ribbon/Themes/Controls/Spinner.xaml b/Fluent.Ribbon/Themes/Controls/Spinner.xaml index d7ddf72e2..dc9a38101 100644 --- a/Fluent.Ribbon/Themes/Controls/Spinner.xaml +++ b/Fluent.Ribbon/Themes/Controls/Spinner.xaml @@ -209,6 +209,13 @@ + + + + + + + diff --git a/Fluent.Ribbon/Themes/Controls/SplitButton.xaml b/Fluent.Ribbon/Themes/Controls/SplitButton.xaml index c580da97d..34e83fd04 100644 --- a/Fluent.Ribbon/Themes/Controls/SplitButton.xaml +++ b/Fluent.Ribbon/Themes/Controls/SplitButton.xaml @@ -13,6 +13,7 @@ + @@ -320,6 +321,7 @@ TargetType="{x:Type Fluent:ToggleButton}"> + diff --git a/Fluent.Ribbon/Themes/Controls/ToggleButton.xaml b/Fluent.Ribbon/Themes/Controls/ToggleButton.xaml index fb7eac476..bf74edef4 100644 --- a/Fluent.Ribbon/Themes/Controls/ToggleButton.xaml +++ b/Fluent.Ribbon/Themes/Controls/ToggleButton.xaml @@ -17,6 +17,7 @@ + diff --git a/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml b/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml index e040df3b8..31f0829c1 100644 --- a/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml +++ b/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml @@ -252,6 +252,8 @@ + +