-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Fluent] Adding RecognizesAccessKey=True in remaining Fluent control styles #10932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fluent] Adding RecognizesAccessKey=True in remaining Fluent control styles #10932
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request addresses issue #10928 by ensuring that controls correctly support access key behavior. The key changes are:
- Adding RecognizesAccessKey="True" to RepeatButton and ToggleButton templates.
- Updating styles in various themes (Fluent, Fluent.Light, Fluent.HC, and Fluent.Dark) and control-specific XAML files.
- Altering the Expander control template, although its changes seem inconsistent with the stated goal.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
Fluent.xaml | Updates RepeatButton and ToggleButton templates; Expander template removes RecognizesAccessKey attribute. |
Fluent.Light.xaml | Similar updates for RepeatButton/ToggleButton; Expander template change removes the property. |
Fluent.HC.xaml | Adds RecognizesAccessKey for some controls while removing it for Expander. |
Fluent.Dark.xaml | Consistent additions for RepeatButton/ToggleButton but removal for Expander controls. |
ToggleButton.xaml, RepeatButton.xaml, Expander.xaml | Standalone style files add the property for ToggleButton/RepeatButton; Expander style removals noted. |
Comments suppressed due to low confidence (1)
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Expander.xaml:337
- This change removes the RecognizesAccessKey attribute from the Expander style, which is unexpected given the PR description. Please update the Expander style to include RecognizesAccessKey="True".
<ContentPresenter x:Name="ContentPresenter"
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10932 +/- ##
===========================================
Coverage 2.98754% 2.98754%
===========================================
Files 3319 3319
Lines 664894 664894
Branches 74674 74674
===========================================
Hits 19864 19864
Misses 644849 644849
Partials 181 181
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from this query, other things looks good.
Fixes #10928
Description
Adds RecognizesAccessKey property to RepeatButton, ToggleButton and Expander controls.
Customer Impact
Customers using Access keys to navigate in the application will get the correct behavior.
Regression
No
Testing
Local app testing
Risk
Minimal
Microsoft Reviewers: Open in CodeFlow