ThemedWindow.ShowDialog(MessageBoxButton, Nullable<MessageBoxResult>) Method

Displays the ThemedWindowDialog with the specified MessageBoxButton. A result returned when the window is closed.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public MessageBoxResult ShowDialog(
    MessageBoxButton dialogButtons,
    MessageBoxResult? defaultButton = default(MessageBoxResult? )
)
Public Function ShowDialog(
    dialogButtons As MessageBoxButton,
    defaultButton As MessageBoxResult? = Nothing
) As MessageBoxResult

Parameters

Name Type Description
dialogButtons MessageBoxButton

Buttons to display in the message box.

Optional Parameters

Name Type Default Description
defaultButton Nullable<MessageBoxResult>

null

A default button for the message box.

Returns

Type Description
MessageBoxResult

The ThemedWindowDialog's result value.

Remarks

The following code snippet shows how to display a ThemedWindowDialog with the OK and Cancel buttons:

ThemedWindow themedWindow = new ThemedWindow() { Title = "ThemedWindowDialog" };
MessageBoxResult result = themedWindow.ShowDialog(MessageBoxButton.OKCancel);
See Also