Skip to content

fix(controls): Always run SetWindowChrome - #1744

Closed
Nuklon wants to merge 1 commit into
lepoco:mainfrom
Nuklon:patch-44
Closed

fix(controls): Always run SetWindowChrome#1744
Nuklon wants to merge 1 commit into
lepoco:mainfrom
Nuklon:patch-44

Conversation

@Nuklon

@Nuklon Nuklon commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Currently, this is guarded under IsCompositionEnabled, but this not always reliable (e.g. on old Windows versions), and SetWindowChrome works fine even if IsCompositionEnabled is false. If SetWindowChrome isn't run, this causes the default Windows border to remain.

What is the new behavior?

Just catch all errors and run it.

@Nuklon
Nuklon requested a review from pomianowski as a code owner July 17, 2026 17:14
@github-actions github-actions Bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release labels Jul 17, 2026
@Nuklon

Nuklon commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator Author

Replaced by #1750.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant