Skip to content

Net11 editable strokes main - #15147

Merged
LeafShi1 merged 2 commits into
dotnet:mainfrom
ricardobossan:net11-editable-strokes-main
Sep 22, 2026
Merged

LeafShi1 merged 2 commits into
dotnet:mainfrom
ricardobossan:net11-editable-strokes-main

Conversation

@ricardobossan

@ricardobossan ricardobossan commented Sep 18, 2026

Copy link
Copy Markdown
Member

Fixes #14906 and #15127

Summary

I am bringing the two reviewed RC2 fixes into dotnet/winforms:main so they remain part of the mainline.

Root Cause

The fixes for the modern editable-control border stroke and the UpDown focus indicator were already reviewed and merged on integration/11.0-RC2, but they were not yet present on main.

Proposed changes

Risk

Minimal. Both commits retain their cherry-pick traceability lines from the original RC2 commits.

Test environment(s)

  • 11.0.100-rc.1.26420.10
Microsoft Reviewers: Open in CodeFlow

Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) added 2 commits September 18, 2026 10:07
## Summary

This is the integration/11.0-RC2 version of dotnet#15080 so the state-aware
field outlines can be exercised against the RC2 branch. The needed code
dependencies are already present on this branch.

## What changed

This PR restores the per-state editable-control border model for dotnet#14906
on integration/11.0-RC2. It applies the state-based stroke resolver and
linear-light color blending to TextBoxBase, the modern ComboBox adapter,
and UpDownBase, keeps the bottom-edge focus cue tapered, restores hover
behavior, and preserves a clean one-pixel bottom edge for FixedSingle
and None.

The ComboBox disabled-border test was also revised for the new
low-contrast enabled border. Instead of relying on an
enabled-versus-disabled pixel-count difference, it now checks that the
enabled field-stroke color is absent from the disabled rendering and
that the disabled rendering uses the disabled border color.

## Testing

The updated ComboBox disabled-border test passes locally on an
equivalent base for all three FlatStyle cases. Integration CI will
provide the RC2 runtime confirmation.

## Refs

Related to dotnet#14906. This re-lands the intent of dotnet#15080 for
integration/11.0-RC2, while the main-first landing remains tracked
separately by dotnet#15109.

###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/15113)

(cherry picked from commit 56fa5d7)
The Net11 UpDown focus edge used 3 DIP instead of 2 DIP.
Use 2 DIP in UpDownBase.cs while retaining the shared edge geometry.
This puts the UpDown focus indicator in parity with the TextBox.
Fixes dotnet#15127

(cherry picked from commit 429109a)
@codecov

codecov Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.24166%. Comparing base (75072a6) to head (b534719).

Additional details and impacted files
@@              Coverage Diff              @@
##                main      #15147   +/-   ##
=============================================
  Coverage   37.24166%   37.24166%           
=============================================
  Files            246         246           
  Lines           9774        9774           
  Branches        1029        1029           
=============================================
  Hits            3640        3640           
  Misses          5970        5970           
  Partials         164         164           
Flag Coverage Δ
Debug 37.24166% <ø> (ø)
production 39.36526% <ø> (ø)
test 20.64923% <ø> (ø)
unit 39.36526% <ø> (ø)

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.

@LeafShi1
LeafShi1 enabled auto-merge September 22, 2026 03:09
@LeafShi1 LeafShi1 added this to the 11.0-rc2 milestone Sep 22, 2026
@LeafShi1
LeafShi1 merged commit 799c47a into dotnet:main Sep 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tracking] Modern field stroke state model for Net11 editable controls (TextBoxBase)

2 participants