DXDialogWindow.GenerateUICommands(MessageBoxButton, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) Method
Returns a collection of UICommand objects generated based on the specified MessageBoxButton enumerator value.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v25.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
public static List<UICommand> GenerateUICommands(
MessageBoxButton dialogButtons,
MessageBoxResult? defaultButton = null,
MessageBoxResult? cancelButton = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| dialogButtons | MessageBoxButton | A MessageBoxButton enumerator value that specifies the set of buttons displayed within the current DXDialogWindow. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| defaultButton | Nullable<MessageBoxResult> | null | A MessageBoxResult that specifies which message box button is default. |
| cancelButton | Nullable<MessageBoxResult> | null | A MessageBoxResult that specifies which message box button is cancel. |
Returns
| Type | Description |
|---|---|
| List<UICommand> | A list of UICommand objects generated based on the specified MessageBoxButton enumerator value. |
Remarks
Use this method to generate a collection of UICommand objects and then manually correct them if necessary.
See Also