Table of Contents

Method RegisterAttached

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

RegisterAttached(string, Type, Type)

Register an attached Dependency Property

public static DependencyProperty RegisterAttached(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

RegisterAttached(string, Type, Type, PropertyMetadata)

Register an attached Dependency Property

public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata)

Parameters

name string

Name of property

propertyType Type

Type of the property

ownerType Type

Type that is registering the property

defaultMetadata PropertyMetadata

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

Returns

DependencyProperty

Dependency Property

RegisterAttached(string, Type, Type, PropertyMetadata, ValidateValueCallback)

Register an attached Dependency Property

public static DependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, PropertyMetadata defaultMetadata, ValidateValueCallback validateValueCallback)

Parameters

name string

Name of property

propertyType Type

Type of the property

ownerType Type

Type that is registering the property

defaultMetadata 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