Skip to content

DialogButtonViewModel.CreateCustom method

Creates a button with a caption, position and appearance of your own, for actions that are specific to one dialog.

public static IDialogButtonViewModel CreateCustom(ICommand command, string content, 
    object? commandParameter = null, DockType dockType = DockType.Right, int? index = null, 
    string? classes = null)
parameter description
command The command invoked when the button is pressed.
content The button caption. It is used as given, not localized.
commandParameter The value passed to command.
dockType The side of the dialog footer the button is docked to.
index The position among the buttons docked to the same side, in ascending order. null keeps the declaration order.
classes Extra space-separated style classes for the button, added to the standard dialog button styling.

Return Value

The button view model.

See Also