DXMessageBox.Show(FrameworkElement, String, String, MessageBoxButton, MessageBoxImage, MessageBoxResult, MessageBoxOptions, FloatingMode, Boolean, Double) Method
Displays the DXMessageBox with specific owner, text, title, icon, display options, floating mode, animation, maximum width 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,
double maximumWidth
)
#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. |
maximum |
Double | A Double value specifying the maximum width of the DXMessage |
#Returns
Type | Description |
---|---|
Message |
A System. |
#Remarks
By default, the width of the DXMessageBox is calculated automatically based on its contents. You can limit the maximum width of the DXMessageBox with the maximumWidth parameter.