Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ThemedMessageBoxParameters Class

Contains properties that allow you to customize the ThemedMessageBox.

Namespace: DevExpress.Xpf.Core

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

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