Skip to main content
A newer version of this page is available. .
All docs
V22.2

ThemedMessageBoxParameters Class

Contains properties that allow you to customize the ThemedMessageBox.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public sealed class ThemedMessageBoxParameters

Remarks

The following code sample clicks the Apply button 5 seconds after the ThemedMessageBox is shown:

ThemedMessageBox - Button Timer

using DevExpress.Mvvm;
using DevExpress.Xpf.Core;
// ...

void Button_Click(object sender, RoutedEventArgs e) {
    // ...
    var parameters = new ThemedMessageBoxParameters() {
        TimerTimeout = new System.TimeSpan(0, 0, 5),
        TimerFormat = "{0} ({1:%s} sec.)"
    };
    ThemedMessageBox.Show(
        title: "Dialog Title", 
        text: "Message", 
        messageBoxButtons: new UICommand[] { buttonOk, buttonCancel },
        messageBoxParameters: parameters
    );
}

Inheritance

Object
ThemedMessageBoxParameters
See Also