Method RegisterAttachedReadOnly
RegisterAttachedReadOnly(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 RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata)
Parameters
name
stringpropertyType
TypeownerType
TypedefaultMetadata
PropertyMetadata
Returns
RegisterAttachedReadOnly(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 RegisterAttachedReadOnly(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback)
Parameters
name
stringpropertyType
TypeownerType
TypedefaultMetadata
PropertyMetadatavalidateValueCallback
ValidateValueCallback