WinUIMessageBox.Show(FrameworkElement, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions, FloatingMode) Method
Displays the WinUIMessageBox with specific owner, text, title, icon, display options, floating mode and set of buttons, one of which is set as default.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v24.2.dll
NuGet Package: DevExpress.Wpf.Controls
#Declaration
public static MessageBoxResult Show(
FrameworkElement owner,
string messageBoxText,
string caption,
MessageBoxButton button,
MessageBoxImage icon,
MessageBoxResult defaultResult,
MessageBoxOptions options,
FloatingMode desiredFloatingMode
)
#Parameters
Name | Type | Description |
---|---|---|
owner | Framework |
A Framework |
message |
String | A String value that is the text to be displayed within the current Win |
caption | String | A String value that is the Win |
button | Message |
A Message |
icon | Message |
A Message |
default |
Message |
A Message |
options | Message |
A Message |
desired |
Floating |
A Floating |
#Returns
Type | Description |
---|---|
Message |
A Message |
#Remarks
Depending on the desiredFloatingMode parameter, the WinUIMessageBox can float in 3 ways:
- FloatingMode.Adorner - the message box is initially centered against the application window and stuck to it. The message box is displayed above the application window only and is always focused. Moving the application window moves the message box respectively.
- FloatingMode.Popup - the message box is initially centered against the application window and displayed above all windows.
- FloatingMode.Window - the message box is initially centered against a screen and behaves similar to modal windows - it can lose focus and is displayed above the application window only.