Open sandboxFocus

Method AddNamingConvention

AddNamingConvention(DependencyPropertyNamingConvention, int?)

Adds or updates a naming convention that specifies, based on the name of the target method of the DependencyProperty aspect: the name of the registration field and of the OnChanging, OnChanged and Validate methods.

Declaration
public void AddNamingConvention(DependencyPropertyNamingConvention namingConvention, int? priority = null)
Parameters
Type Name Description
DependencyPropertyNamingConvention namingConvention

A DependencyPropertyNamingConvention.

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 DependencyPropertyNamingConvention of the same Name has already been registered, this call replaces the old instance by the new one, including the new priority.