Skip to content

Rounded corners of window on Windows 11 applicable to WPF.

Notifications You must be signed in to change notification settings

emoacht/WindowCornerTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Window Corner Test

Rounded corners of window on Windows 11 applicable to WPF.

Requirements

  • .NET 5.0
  • Windows 11 (10.0.22000.x)

Overview

To work with rounded corners introduced in Windows 11, check the official explanation on this feature.

(This document is dated on 10/02/2020 but actually it was committed on 07/17/2021.)

The underlying values of key constants, DWMWA_WINDOW_CORNER_PREFERENCE and DWM_WINDOW_CORNER_PREFERENCE enumeration, can be found in dwmapi.h included in Windows Insider Preview SDK.

When rounded corners are applied to a window, a gray outline is automatically added.

On version 10.0.22000.100, anti-aliasing is not applied to the rounded corners and they show noticeable jaggies (except those of standard title bar).

Screenshot
(DPI: 175%)

On version 10.0.22000.120, anti-aliasing is applied and the jaggies are fixed.

Screenshot

About

Rounded corners of window on Windows 11 applicable to WPF.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages