Skip to content

Add ability to control window border color on Windows 11 #21154

@kapios010

Description

@kapios010

Is your feature request related to a problem? Please describe.

There is currently no way to change the border color on Windows 11 without using P/Invoke. It would make for a nice stylization feature (and I want to use it for an app I'm making).

Describe the solution you'd like

Introducing a StyledProperty BorderColorHint to the Window similarly to #17294 might be a good choice, but it could cause confusion with BorderBrush (a property which I've tried to unsuccessfully use to set the window border color).

Describe alternatives you've considered

While it's possible to manually call DwmSetWindowAttribute, it'd be simpler to have a dedicated property.

Additional context

Custom-colored borders as visible in windowed VS2026:
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions