Class ExecuteAttribute
- Namespace
- Tudormobile.Wpf.Commands
- Assembly
- Tudormobile.WpfApp.dll
Identifies a method as an ICommand 'Execute()' handler.
[AttributeUsage(AttributeTargets.Method)]
public class ExecuteAttribute : Attribute
- Inheritance
-
ExecuteAttribute
- Derived
- 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
ExecuteAttribute(string)
Create an initialize a new instance.
public ExecuteAttribute(string commandName)
Parameters
commandName
stringThe ICommand property name.
ExecuteAttribute(string, string)
Create and initialize a new instance.
public ExecuteAttribute(string className, string commandName)
Parameters
className
stringThe class containing the ICommand property.
commandName
stringThe ICommand property name.
Properties
ClassName
The class containing the ICommand property.
public string? ClassName { get; }
Property Value
CommandName
The ICommand property name to link to.
public string CommandName { get; }