Back to Devexpress

CompatibilitySettings.EnableDPICorrection Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-6a76d669.md

latest1.5 KB
Original Source

CompatibilitySettings.EnableDPICorrection Property

Gets or sets whether to enable DPI correction to improve layout rendering.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Data.Desktop.v25.2.dll

NuGet Packages : DevExpress.Data.Desktop, DevExpress.ExpressApp.Win.Design

Declaration

csharp
public static bool EnableDPICorrection { get; set; }
vb
Public Shared Property EnableDPICorrection As Boolean

Property Value

TypeDescription
Boolean

true , to enable DPI correction; otherwise false.

|

Remarks

To enable the DPI correction for WPF controls and obtain a properly rendered layout, apply a DevExpress theme that supports DPI correction and set the standard UseLayoutRounding property to true. In this case, DXBorder defined in the applied theme uses improved rendering logic.

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace