DXDialogWindow.GenerateUICommands(MessageBoxButton, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) Method
In This Article
Returns a collection of UICommand objects generated based on the specified MessageBoxButton enumerator value.
Namespace: DevExpress.Xpf.Core
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
public static List<UICommand> GenerateUICommands(
MessageBoxButton dialogButtons,
MessageBoxResult? defaultButton = null,
MessageBoxResult? cancelButton = null
)
#Parameters
Name | Type | Description |
---|---|---|
dialog |
Message |
A Message |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
default |
Nullable<Message |
null | A Message |
cancel |
Nullable<Message |
null | A Message |
#Returns
Type | Description |
---|---|
List<UICommand> | A list of UICommand objects generated based on the specified Message |
#Remarks
Use this method to generate a collection of UICommand objects and then manually correct them if necessary.
See Also