Method RegisterAttached
RegisterAttached(string, Type, Type)
Register an attached Dependency Property
public static DependencyProperty RegisterAttached(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
RegisterAttached(string, Type, Type, PropertyMetadata)
Register an attached Dependency Property
public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata)
Parameters
name
stringName of property
propertyType
TypeType of the property
ownerType
TypeType that is registering the property
defaultMetadata
PropertyMetadataMetadata to use if current type doesn't specify type-specific metadata
Returns
- DependencyProperty
Dependency Property
RegisterAttached(string, Type, Type, PropertyMetadata, ValidateValueCallback)
Register an attached Dependency Property
public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback)
Parameters
name
stringName of property
propertyType
TypeType of the property
ownerType
TypeType that is registering the property
defaultMetadata
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