ThemedWindow.RoundCorners Property
Gets or sets whether ThemedWindow instances and descendants in your application have rounded corners.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
The figure below illustrates a window with rounded corners:
The following code sample rounds ThemedWindow corners:
using DevExpress.Xpf.Core;
//...
public partial class App {
protected override void OnStartup(StartupEventArgs e) {
base.OnStartup(e);
ThemedWindow.RoundCorners = true;
}
}
You can use the RoundCorners and ThemedWindow.UseNativeWindow properties to specify whether corners of your application’s windows are rounded.
The following table describes whether your application’s corners are rounded depending on your Windows version, applied DevExpress Theme, and the UseNativeWindow and RoundCorners property values:
Windows Version | Applied DevExpress Theme |
| |||
---|---|---|---|---|---|
|
|
|
| ||
Windows 11 | |||||
non-Win11Light/Win11Dark | |||||
Windows 10 and earlier | |||||
non-Win11Light/Win11Dark |
Limitation
The RoundCorners property has no effect when the EnableAcrylic property is true
.