CommandAttribute Class
Namespace: Metalama.Patterns.Wpf
Assembly: Metalama.Patterns.Wpf.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public sealed class CommandAttribute : Attribute, IAspect<IMethod>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IMethod>
Constructors
Name | Description |
---|---|
CommandAttribute() |
Properties
Name | Description |
---|---|
CanExecuteMethod | Gets or sets the name of the method that is called to determine whether the command can be executed. This method corresponds to the CanExecute(object) method. |
CanExecuteProperty | Gets or sets the name of the property that is evaluated to determine whether the command can be executed. This property corresponds to the CanExecute(object) method. |
CommandPropertyName | Gets or sets the name of the ICommand property that is introduced. |
EnableINotifyPropertyChangedIntegration | Gets or sets a value indicating whether integration with INotifyPropertyChanged is enabled. The default is true. |