Table of Contents

Class DependencyPropertyEx

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Provides generic dependency property register methods.

public static class DependencyPropertyEx
Inheritance
DependencyPropertyEx
Inherited Members

Methods

Register<TProperty, TOwner>(string, TProperty)

Registers a dependency property with the specified name.

public static DependencyProperty Register<TProperty, TOwner>(string name, TProperty defaultValue) where TOwner : DependencyObject

Parameters

name string

The name.

defaultValue TProperty

The default value.

Returns

DependencyProperty

A DependencyProperty.

Type Parameters

TProperty

The type of the property.

TOwner

The type of the owner class.

Register<TProperty, TOwner>(string, TProperty, Action<TOwner, DependencyPropertyChangedEventArgs>)

Registers a dependency property with the specified name.

public static DependencyProperty Register<TProperty, TOwner>(string name, TProperty defaultValue, Action<TOwner, DependencyPropertyChangedEventArgs> callback) where TOwner : DependencyObject

Parameters

name string

The name.

defaultValue TProperty

The default value.

callback Action<TOwner, DependencyPropertyChangedEventArgs>

The callback.

Returns

DependencyProperty

A DependencyProperty.

Type Parameters

TProperty

The type of the property.

TOwner

The type of the owner class.