Method RegisterReadOnly
RegisterReadOnly(string, Type, Type, PropertyMetadata)
Simple registration, metadata, validation, and a read-only property key. Calling this version restricts the property such that it can only be set via the corresponding overload of DependencyObject.SetValue.
public static DependencyPropertyKey RegisterReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata)
Parameters
name
stringpropertyType
TypeownerType
TypetypeMetadata
PropertyMetadata
Returns
RegisterReadOnly(string, Type, Type, PropertyMetadata, ValidateValueCallback)
Simple registration, metadata, validation, and a read-only property key. Calling this version restricts the property such that it can only be set via the corresponding overload of DependencyObject.SetValue.
public static DependencyPropertyKey RegisterReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback)
Parameters
name
stringpropertyType
TypeownerType
TypetypeMetadata
PropertyMetadatavalidateValueCallback
ValidateValueCallback