DXMessageBox.Show(FrameworkElement, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions, FloatingMode, Boolean) Method
Displays the DXMessageBox with specific owner, text, title, icon, display options, floating mode, animation, and set of buttons, one of which is set as default.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public static MessageBoxResult Show(
FrameworkElement owner,
string messageBoxText,
string caption,
MessageBoxButton button,
MessageBoxImage icon,
MessageBoxResult defaultResult,
MessageBoxOptions options,
FloatingMode desiredFloatingMode,
bool allowShowAnimatoin
)
#Parameters
Name | Type | Description |
---|---|---|
owner | Framework |
A Framework |
message |
String | A String value that is the text to be displayed within the current DXMessage |
caption | String | A String value that is the DXMessage |
button | Message |
A System. |
icon | Message |
A System. |
default |
Message |
A System. |
options | Message |
A System. |
desired |
Floating |
A DevExpress. |
allow |
Boolean | true, if message box show should be followed with smooth animation effects; otherwise, false. |
#Returns
Type | Description |
---|---|
Message |
A System. |
#Remarks
Depending on the desiredFloatingMode parameter, the DXMessageBox 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.