Skip to main content

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

WinUIMessageBox Class

A Windows Modern UI-styled message box.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public class WinUIMessageBox :
    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.

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

WPF - Notifications - WinUI Message

The WinUIMessageBox supports WPF Themes.

Note

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

See Also