Skip to main content
All docs
V24.2

UICommand(Object, Object, ICommand, Boolean, Boolean, Object, Boolean, Object, DialogButtonAlignment, AsyncDisplayMode, Object, GlyphAlignment) Constructor

Initializes a new instance of the UICommand class with specified settings.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.2.dll

Declaration

[Browsable(false)]
public UICommand(
    object id,
    object caption,
    ICommand command,
    bool isDefault,
    bool isCancel,
    object tag = null,
    bool allowCloseWindow = true,
    object placement = null,
    DialogButtonAlignment alignment = DialogButtonAlignment.Right,
    AsyncDisplayMode asyncDisplayMode = AsyncDisplayMode.None,
    object glyph = null,
    GlyphAlignment glyphAlignment = GlyphAlignment.Left
)

Parameters

Name Type
id Object
caption Object
command ICommand
isDefault Boolean
isCancel Boolean

Optional Parameters

Name Type Default
tag Object null
allowCloseWindow Boolean True
placement Object null
alignment DialogButtonAlignment Right
asyncDisplayMode AsyncDisplayMode None
glyph Object null
glyphAlignment GlyphAlignment Left
See Also