Table of Contents

Method Register

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Register(string, Type, Type)

Register a Dependency Property

public static DependencyProperty Register(string name, Type propertyType, Type ownerType)

Parameters

name string

Name of property

propertyType Type

Type of the property

ownerType Type

Type that is registering the property

Returns

DependencyProperty

Dependency Property

Register(string, Type, Type, PropertyMetadata)

Register a Dependency Property

public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata)

Parameters

name string

Name of property

propertyType Type

Type of the property

ownerType Type

Type that is registering the property

typeMetadata PropertyMetadata

Metadata to use if current type doesn't specify type-specific metadata

Returns

DependencyProperty

Dependency Property

Register(string, Type, Type, PropertyMetadata, ValidateValueCallback)

Register a Dependency Property

public static DependencyProperty Register(string name, Type propertyType, Type ownerType, PropertyMetadata typeMetadata, ValidateValueCallback validateValueCallback)

Parameters

name string

Name of property

propertyType Type

Type of the property

ownerType Type

Type that is registering the property

typeMetadata PropertyMetadata

Metadata to use if current type doesn't specify type-specific metadata

validateValueCallback ValidateValueCallback

Provides additional value validation outside automatic type validation

Returns

DependencyProperty

Dependency Property