Back to Devexpress

CompatibilitySettings.UseThemedMessageBoxInServices Property

corelibraries-devexpress-dot-xpf-dot-core-dot-compatibilitysettings-2c4e4da0.md

latest2.1 KB
Original Source

CompatibilitySettings.UseThemedMessageBoxInServices Property

Gets or sets whether to use the ThemedMessageBox instead of DXMessageBox in WindowService, DialogService, and WindowedDocumentUIService.

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 UseThemedMessageBoxInServices { get; set; }
vb
Public Shared Property UseThemedMessageBoxInServices As Boolean

Property Value

TypeDescription
Boolean

true , to use the ThemedMessageBox ; otherwise, false.

|

Remarks

We’ve been developing the ThemedWindow class since version 17.1 as a universal alternative to legacy DXWindow/DXRibbonWindow/DXTabbedWindow classes. It uses a more native approach to customize the non-client area and supports a wider variety of use cases. Starting with version 18.2, ThemedWindow can also act as a dialog and has built-in dialog buttons. We’ve also created the ThemedMessageBox class that uses a similar approach as ThemedWindow internally.

DXMessageBoxService now always uses ThemedMessageBox instead of DXMessageBox.

To roll back to the old behavior, set the UseThemedMessageBoxInServices property to false.

See Also

CompatibilitySettings Class

CompatibilitySettings Members

DevExpress.Xpf.Core Namespace