Skip to main content
All docs
V24.1

ThemedMessageBoxParameters Class

Contains properties that allow you to customize the ThemedMessageBox.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.1.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