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

WinUIDialogWindow Class

A Windows Modern-styled dialog window.

Namespace: DevExpress.Xpf.WindowsUI

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public class WinUIDialogWindow :
    DXDialogWindow,
    IWindowSurrogate

#Remarks

WinUIDialogWindow objects are similar to regular dialogs (objects of the DXDialog class) and are widely used in applications to prompt end-users for additional information (e.g., entering user credentials). Windows Modern-styled dialogs are displayed within a solid stripe, stretched across the entire application window, while the rest of application slightly fades to gray.

WPF - Notifications - WinUI Dialog

Create the WinUIDialogWindow class instance and call its ShowDialog method to display a Windows Modern-styled dialog.

WinUIDialogWindow winuidialog = new WinUIDialogWindow("Information", MessageBoxButton.OKCancel);
winuidialog.Content = new TextBlock() { Text = "This is a WPF DXDialog!" };
winuidialog.ShowDialog();

WinUIDialogWindow Code Snippet Result

WinUIDialogWindow dialogs fully support DevExpress WPF Themes.

Note

Refer to the WinUIDialogService topic for more information on the WinUIDialog MVVM service.

See Also