Class DependencyPropertyFactory
public static class DependencyPropertyFactory
- Inheritance
-
objectDependencyPropertyFactory
Methods
RegisterAttached<T>(string, Type, T)
Registers an attached dependency property.
public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
RegisterAttached<T>(string, Type, T, ObjectInvalidationCallback<T>)
Registers an attached dependency property.
public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue, ObjectInvalidationCallback<T> invalidationCallback)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
invalidationCallbackObjectInvalidationCallback<T>A callback to invalidate an object state after a modification of the property's value.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
RegisterAttached<T>(string, Type, T, ValidateValueCallback<T>)
Registers an attached dependency property.
public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue, ValidateValueCallback<T> validateValueCallback)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
validateValueCallbackValidateValueCallback<T>A callback for validation/coercision of the property's value.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
RegisterAttached<T>(string, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, params PropertyKeyMetadata[])
Registers an attached dependency property.
public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue, ValidateValueCallback<T> validateValueCallback, ObjectInvalidationCallback<T> invalidationCallback, params PropertyKeyMetadata[] metadatas)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
validateValueCallbackValidateValueCallback<T>A callback for validation/coercision of the property's value.
invalidationCallbackObjectInvalidationCallback<T>A callback to invalidate an object state after a modification of the property's value.
metadatasPropertyKeyMetadata[]The metadatas.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
Register<T>(string, Type, T)
Registers a dependency property.
public static PropertyKey<T> Register<T>(string name, Type ownerType, T defaultValue)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
Register<T>(string, Type, T, ObjectInvalidationCallback<T>)
Registers a dependency property.
public static PropertyKey<T> Register<T>(string name, Type ownerType, T defaultValue, ObjectInvalidationCallback<T> invalidationCallback)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
invalidationCallbackObjectInvalidationCallback<T>A callback to invalidate an object state after a modification of the property's value.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
Register<T>(string, Type, T, ValidateValueCallback<T>)
Registers a dependency property.
public static PropertyKey<T> Register<T>(string name, Type ownerType, T defaultValue, ValidateValueCallback<T> validateValueCallback)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
validateValueCallbackValidateValueCallback<T>A callback for validation/coercision of the property's value.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.
Register<T>(string, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, params PropertyKeyMetadata[])
Registers a dependency property.
public static PropertyKey<T> Register<T>(string name, Type ownerType, T defaultValue, ValidateValueCallback<T> validateValueCallback, ObjectInvalidationCallback<T> invalidationCallback, params PropertyKeyMetadata[] metadatas)
Parameters
namestringThe name of the property.
ownerTypeTypeThe type that is registering the property.
defaultValueTThe default value of the property.
validateValueCallbackValidateValueCallback<T>A callback for validation/coercision of the property's value.
invalidationCallbackObjectInvalidationCallback<T>A callback to invalidate an object state after a modification of the property's value.
metadatasPropertyKeyMetadata[]The metadatas.
Returns
- PropertyKey<T>
Type Parameters
TThe type of the property.