Table of Contents

Method RegisterReadOnly

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

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

Returns

DependencyPropertyKey

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

Returns

DependencyPropertyKey