Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.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
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