Table of Contents

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 string

The ICommand property name.

ExecuteAttribute(string, string)

Create and initialize a new instance.

public ExecuteAttribute(string className, string commandName)

Parameters

className string

The class containing the ICommand property.

commandName string

The ICommand property name.

Properties

ClassName

The class containing the ICommand property.

public string? ClassName { get; }

Property Value

string

CommandName

The ICommand property name to link to.

public string CommandName { get; }

Property Value

string