wpf-devexpress-dot-xpf-dot-core-dot-themedwindow-d19ee6e1.md
Gets or sets whether ThemedWindow instances and descendants in your application have rounded corners.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static bool RoundCorners { get; set; }
Public Shared Property RoundCorners As Boolean
| Type | Description |
|---|---|
| Boolean |
true to round ThemedWindow corners; otherwise false.
|
The picture below illustrates a window with rounded corners:
The following code snippet rounds ThemedWindow corners:
using DevExpress.Xpf.Core;
//...
public partial class App {
protected override void OnStartup(StartupEventArgs e) {
base.OnStartup(e);
ThemedWindow.RoundCorners = true;
}
}
Imports DevExpress.Xpf.Core
Public Partial Class App
Protected Overrides Sub OnStartup(ByVal e As StartupEventArgs)
MyBase.OnStartup(e)
ThemedWindow.RoundCorners = True
End Sub
End Class
Use RoundCorners and ThemedWindow.UseNativeWindow properties to specify whether the corners of your application windows are rounded.
Note
The Windows version lower then 10 may display rounded corners incorrectly.
The following table describes whether your application’s corners are rounded depending on your Windows version, applied DevExpress Theme, and UseNativeWindow and RoundCorners property values:
|
Windows Version
|
Applied DevExpress Theme
|
|
RoundCorners
| | --- | --- | --- | --- | |
true
|
false
|
true
|
false
| | --- | --- | --- | --- | |
Windows 11
|
|
|
|
|
| |
non-Win11Light/Win11Dark
|
|
|
|
| |
Windows 10 and earlier
|
|
|
|
|
| |
non-Win11Light/Win11Dark
|
|
|
|
|
The RoundCorners property has no effect when the EnableAcrylic property is true.
Footnotes
See Also