Method Register
Register(string, Type, Type)
Register a Dependency Property
public static DependencyProperty Register(string name, Type propertyType, Type ownerType)
Parameters
name
stringName of property
propertyType
TypeType of the property
ownerType
TypeType that is registering the property
Returns
- DependencyProperty
Dependency Property
Register(string, Type, Type, PropertyMetadata)
Register a Dependency Property
public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata)
Parameters
name
stringName of property
propertyType
TypeType of the property
ownerType
TypeType that is registering the property
typeMetadata
PropertyMetadataMetadata to use if current type doesn't specify type-specific metadata
Returns
- DependencyProperty
Dependency Property
Register(string, Type, Type, PropertyMetadata, ValidateValueCallback)
Register a Dependency Property
public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback)
Parameters
name
stringName of property
propertyType
TypeType of the property
ownerType
TypeType that is registering the property
typeMetadata
PropertyMetadataMetadata to use if current type doesn't specify type-specific metadata
validateValueCallback
ValidateValueCallbackProvides additional value validation outside automatic type validation
Returns
- DependencyProperty
Dependency Property