-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix(Fluent): TextBox invalidation style #10887
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
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 PR addresses issue #10826 by updating the error template for TextBox controls in the Fluent theme to align with Fluent design guidelines instead of the Aero theme.
- Adds a new ControlTemplate (DefaultTextBoxInvalidationStyle) to Fluent.xaml, Fluent.Light.xaml, Fluent.HC.xaml, Fluent.Dark.xaml, and TextBox.xaml.
- Updates DefaultTextBoxStyle to reference the new error template in each theme file and introduces a shared resource (ErrorTemplateBorderPadding) in Variables.xaml.
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
Fluent.xaml | Added DefaultTextBoxInvalidationStyle and updated TextBox style to use the new error template |
Fluent.Light.xaml | Added DefaultTextBoxInvalidationStyle and updated TextBox style similarly |
Fluent.HC.xaml | Added DefaultTextBoxInvalidationStyle and updated TextBox style similarly |
Fluent.Dark.xaml | Added DefaultTextBoxInvalidationStyle and updated TextBox style similarly |
TextBox.xaml | Added DefaultTextBoxInvalidationStyle with a reference to a shared Padding resource |
Variables.xaml | Introduced ErrorTemplateBorderPadding to support the new error template |
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Light.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.HC.xaml
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Themes/Fluent.Dark.xaml
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10887 +/- ##
===========================================
Coverage 2.98814% 2.98814%
===========================================
Files 3319 3319
Lines 664895 664895
Branches 74675 74675
===========================================
Hits 19868 19868
Misses 644846 644846
Partials 181 181
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Fixes #10826
Description
The invalidation style for the Fluent theme was not altered, resulting in the rendering of styles defined by the Aero theme. These changes add an error template for a textbox to align with Fluent design.
Customer Impact
Better looking UI
Regression
None
Testing
Local build pass
Validated with a sample application
Risk
Low
Microsoft Reviewers: Open in CodeFlow