Class CanExecuteAttribute
- Namespace
- Tudormobile.Wpf.Commands
- Assembly
- Tudormobile.WpfApp.dll
Identifies a method as an ICommand 'CanExecute()' handler.
[AttributeUsage(AttributeTargets.Method)]
public class CanExecuteAttribute : ExecuteAttribute
- Inheritance
-
CanExecuteAttribute
- Inherited Members
Remarks
The 'ClassName' may be omitted, however, the name of the ICommand property combined with the name of the class containing the property must be unique throughout the configured assemblies. You can define 'Execute' or 'CanExecute' methods independently for the same command.
Constructors
CanExecuteAttribute(string)
Create an initialize a new instance.
public CanExecuteAttribute(string commandName)
Parameters
commandName
stringThe ICommand property name.
CanExecuteAttribute(string, string)
Create and initialize a new instance.
public CanExecuteAttribute(string className, string commandName)