Skip to main content

UICommand Members

A ViewModel that is used to generate a dialog button.

Constructors

Name Description
UICommand() Initializes a new instance of the UICommand class with the default settings.
UICommand(Object, Object, ICommand<CancelEventArgs>, Boolean, Boolean, Object, Boolean, Dock, DialogButtonAlignment, AsyncDisplayMode, Object, GlyphAlignment) Initializes a new instance of the UICommand class with specified settings.
UICommand(Object, Object, ICommand, Boolean, Boolean, Object, Boolean, Dock, DialogButtonAlignment, AsyncDisplayMode, Object, GlyphAlignment) Initializes a new instance of the UICommand class with specified settings.

Properties

Name Description
ActualAlignment For internal use only.
Alignment Gets or sets the dialog button’s horizontal alignment.
AllowCloseWindow Gets or sets a value that indicates whether the dialog button is the close button.
AsyncDisplayMode Gets or sets how the dialog button indicates executed asynchronous operations.
Caption Gets or sets the text displayed within the dialog button.
Command Gets or sets the command to invoke when the dialog button is clicked.
Glyph Gets or sets the image displayed in the dialog button.
GlyphAlignment Gets or sets the dialog button’s image alignment.
Id Gets or sets the identifier of the dialog button.
IsCancel Gets or sets a value that indicates whether the dialog button is the cancel button.
IsDefault Gets or sets a value that indicates whether the dialog button is the default button.
Placement Gets or sets the dialog button alignment.
Tag Gets or sets the data associated with the dialog button.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GenerateFromMessageBoxButton(MessageBoxButton, IMessageBoxButtonLocalizer, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) static For internal use.
GenerateFromMessageBoxButton(MessageBoxButton, IMessageButtonLocalizer, Nullable<MessageBoxResult>, Nullable<MessageBoxResult>) static For internal use.
GenerateFromMessageButton(MessageButton, IMessageButtonLocalizer, Nullable<MessageResult>, Nullable<MessageResult>) static For internal use.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetPropertyName<T>(Expression<Func<T>>) static Returns the name of a property identified by a lambda expression. Inherited from BindableBase.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
PropertyChanged Occurs when a property value changes. Inherited from BindableBase.
See Also