From 0c4dacd748759369a07250d1ebb4a8f5da2ab4e7 Mon Sep 17 00:00:00 2001 From: dipeshmsft Date: Thu, 12 Jun 2025 14:40:20 +0530 Subject: [PATCH] Adding RecognizesAccessKey in remaining control styles --- .../Styles/Expander.xaml | 5 ++++- .../Styles/RepeatButton.xaml | 1 + .../Styles/ToggleButton.xaml | 1 + .../Themes/Fluent.Dark.xaml | 14 +++++++------- .../Themes/Fluent.HC.xaml | 14 +++++++------- .../Themes/Fluent.Light.xaml | 14 +++++++------- .../Themes/Fluent.xaml | 14 +++++++------- 7 files changed, 34 insertions(+), 29 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Expander.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Expander.xaml index 84f7807121c..5b080da55cc 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Expander.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Expander.xaml @@ -36,6 +36,7 @@ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" + RecognizesAccessKey="True" TextElement.FontSize="{TemplateBinding FontSize}" /> diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToggleButton.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToggleButton.xaml index 591991e2bec..5df1d6338c6 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToggleButton.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ToggleButton.xaml @@ -51,6 +51,7 @@ x:Name="ContentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" + RecognizesAccessKey="True" Content="{TemplateBinding Content}" TextElement.Foreground="{TemplateBinding Foreground}" TextElement.FontSize="{TemplateBinding FontSize}"/> diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml index 9809f51dd15..aa947aa1d40 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml @@ -2752,7 +2752,7 @@ - + @@ -2785,7 +2785,7 @@ - + @@ -2818,7 +2818,7 @@ - + @@ -2854,7 +2854,7 @@ - + @@ -2911,7 +2911,7 @@ - + @@ -4442,7 +4442,7 @@ - + @@ -5441,7 +5441,7 @@ - + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml index 03770c56bab..3c248e88f81 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml @@ -2652,7 +2652,7 @@ - + @@ -2685,7 +2685,7 @@ - + @@ -2718,7 +2718,7 @@ - + @@ -2754,7 +2754,7 @@ - + @@ -2811,7 +2811,7 @@ - + @@ -4342,7 +4342,7 @@ - + @@ -5341,7 +5341,7 @@ - + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml index d71267fda7f..7679b790a42 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml @@ -2767,7 +2767,7 @@ - + @@ -2800,7 +2800,7 @@ - + @@ -2833,7 +2833,7 @@ - + @@ -2869,7 +2869,7 @@ - + @@ -2926,7 +2926,7 @@ - + @@ -4457,7 +4457,7 @@ - + @@ -5456,7 +5456,7 @@ - + diff --git a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml index 452a2e10e6e..37842ae536c 100644 --- a/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml +++ b/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml @@ -1950,7 +1950,7 @@ - + @@ -1983,7 +1983,7 @@ - + @@ -2016,7 +2016,7 @@ - + @@ -2052,7 +2052,7 @@ - + @@ -2109,7 +2109,7 @@ - + @@ -3640,7 +3640,7 @@ - + @@ -4639,7 +4639,7 @@ - +