Under construction

(?)

WindowCornerStyle Enum

Specifies the rounded corners of window. Used by the WindowHelper.CornerStyle property.

Definition
  

public enum WindowCornerStyle : uint {...}

Inheritance: ObjectValueTypeEnum → WindowCornerStyle

Fields
  

Default

Let the system decide whether or not to round window corners.

Equivalent to DWMWCP_DEFAULT

Value: 0

DoNotRound
  

Never round window corners.

Equivalent to DWMWCP_DONOTROUND

Value: 1

Round
  

Round the corners if appropriate.

Equivalent to DWMWCP_ROUND

Value: 2

RoundSmall
  

Round the corners if appropriate, with a small radius.

Equivalent to DWMWCP_ROUNDSMALL

Value: 3

Remarks
  

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).

See also
  

Microsoft Learn
  

Source code