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
namestringThe name.
defaultValueTPropertyThe default value.
Returns
- DependencyProperty
A DependencyProperty.
Type Parameters
TPropertyThe type of the property.
TOwnerThe 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
namestringThe name.
defaultValueTPropertyThe default value.
callbackAction<TOwner, DependencyPropertyChangedEventArgs>The callback.
Returns
- DependencyProperty
A DependencyProperty.
Type Parameters
TPropertyThe type of the property.
TOwnerThe type of the owner class.