Back to Devexpress

WinUIMessageBox Class

wpf-devexpress-dot-xpf-dot-windowsui-1cdf30a3.md

latest2.5 KB
Original Source

WinUIMessageBox Class

A Windows Modern UI-styled message box.

Namespace : DevExpress.Xpf.WindowsUI

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public class WinUIMessageBox :
    DXMessageBox
vb
Public Class WinUIMessageBox
    Inherits DXMessageBox

Remarks

Use the WinUIMessageBox.Show method to display a message box stretched across the entire application window, which emulates messages seen in Windows Modern applications.

The following code snippet displays the WinUIMessageBox.

csharp
WinUIMessageBox.Show(messageBoxText: "Service is not responding.\r\nRetry the connection?", caption: "Confirmation", button: MessageBoxButton.YesNo);
vb
WinUIMessageBox.Show(messageBoxText:="Service is not responding." & vbCrLf & "Retry the connection?", caption:="Confirmation", button:=MessageBoxButton.YesNo)

The WinUIMessageBox supports WPF Themes.

Note

Refer to the WinUIMessageBox topic for more information on the WinUIMessageBox MVVM service.

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DXMessageBox WinUIMessageBox

See Also

WinUIMessageBox Members

DevExpress.Xpf.WindowsUI Namespace