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 |
---|---|
Background | Gets or sets a value indicating whether the command will execute in a background thread. The default value is |
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. |
SupportsConcurrentExecution | Gets or sets a value indicating whether several executions of the command can run concurrently. This property is only considered for asynchronous methods.
Its default value is |