Back to Devexpress

ThemedMessageBoxParameters Class

wpf-devexpress-dot-xpf-dot-core-96a7c8a4.md

latest2.2 KB
Original Source

ThemedMessageBoxParameters Class

Contains properties that allow you to customize the ThemedMessageBox.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public sealed class ThemedMessageBoxParameters
vb
Public NotInheritable Class ThemedMessageBoxParameters

Remarks

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

csharp
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
    );
}
vb
Imports DevExpress.Mvvm
Imports DevExpress.Xpf.Core
' ...

Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    ' ...
    Dim parameters = New ThemedMessageBoxParameters() With {
        .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)
End Sub

Inheritance

Object ThemedMessageBoxParameters

See Also

ThemedMessageBoxParameters Members

DevExpress.Xpf.Core Namespace