8000 Fix(Fluent): TextBox invalidation style by harshit7962 · Pull Request #10887 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 3 commits into from
May 30, 2025

Conversation

harshit7962
Copy link
Member
@harshit7962 harshit7962 commented May 27, 2025

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

@Copilot Copilot AI review requested due to automatic review settings May 27, 2025 09:08
@harshit7962 harshit7962 requested a review from a team as a code owner May 27, 2025 09:08
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label May 27, 2025
Copy link
Contributor
@Copilot Copilot AI left a 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

Copy link
codecov bot commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.98814%. Comparing base (8056180) to head (e6b5254).
Report is 4 commits behind head on main.

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           
Flag Coverage Δ
Debug 2.98814% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@harshit7962 harshit7962 merged commit 1642c81 into dotnet:main May 30, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation style does not meet the Fluent style
2 participants
0