AddNamingConvention(CommandNamingConvention, int?)
Adds or updates a naming convention that specifies, based on the name of the target method of the CommandAttribute
aspect: the name of the command property and the name of the CanExecute
method or property.
Declaration
public void AddNamingConvention(CommandNamingConvention namingConvention, int? priority = null)
Parameters
Type | Name | Description |
---|---|---|
CommandNamingConvention | namingConvention | |
int? | priority | The priority of the naming convention. By default, the priority is 0 for the first call of this method, then it is incremented at every call. |
Remarks
If a CommandNamingConvention of the same Name has already been registered,
this call replaces the old instance by the new one, including the new priority
.