You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes System Control Button rendering issues in dark mode, where a
control button is either rendering not in dark mode, or has rendering
artefacts when rendering in the context of the property grid.
These issues have been pointed out by customers, and are, among others,
one of the blockers for GitHub Extensions, which are emotionally
discussed on their GitHub issues
gitextensions/gitextensions#9191 (comment)
(and also might even save lives
gitextensions/gitextensions#11904)
Note while the latter is certainly an ironic-funny remark, those
discussions around dark mode for WinForms app shows the high
participation of the community and the desire to make this work, and
note also that other issues which have been pointed out in other
projects show us clearly, why we should accomodate rendering issues as
early as possible to unblock them: GitExtension in particular but also
other projects can provide their aspired .NET 10 based DarkMode-enabled
versions as soon as .NET 10 becomes available.
Fixes rendering issues in dark mode rendering, where a button is used in
the context of another control:
* DropDownArrow
* UpDown based controls
* Ellipse-Control in Property browsers
These buttons have not been rendered correctly in dark mode, and a new
system control button renderer (tested by CTI) fixes these issues.
Note that this PR does not change the Classic (Light Mode) code paths in
any way.
Examples:
<img width="230" height="60" alt="image"
src="https://github.com/user-attachments/assets/9bd4750b-076d-45cd-9160-997b50ff98ad"
/>
---
<img width="565" height="72" alt="image"
src="https://github.com/user-attachments/assets/26c4eba5-11cd-44ad-8964-bb3d586fee41"
/>
---
<img width="763" height="151" alt="image"
src="https://github.com/user-attachments/assets/ce4f409f-051b-422a-aa1f-26c5a8470e0f"
/>
---
Current versions have been tested by CTI and they also reassured that
the Classic mode CodePaths (LightMode rendering) remain unchanged to
minimize any risks.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/13748)
Copy file name to clipboardExpand all lines: src/System.Windows.Forms/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal/DropDownButton.cs
#pragma warning disable WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning disable WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Copy file name to clipboardExpand all lines: src/System.Windows.Forms/System/Windows/Forms/Controls/PropertyGrid/PropertyGridInternal/PropertyGridView.cs
#pragma warning disable WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
#pragma warning restore WFO5001// Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
0 commit comments