Table of Contents

Method RegisterAttachedReadOnly

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

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 string
propertyType Type
ownerType Type
defaultMetadata PropertyMetadata

Returns

DependencyPropertyKey

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 string
propertyType Type
ownerType Type
defaultMetadata PropertyMetadata
validateValueCallback ValidateValueCallback

Returns

DependencyPropertyKey