DependencyPropertyFactory Class
Namespace: Stride.UIAssembly: Stride.UI.dll
public static class DependencyPropertyFactory
| Name | Description | |
|---|---|---|
| Methods | ||
| Register<T>(String, Type, T) | Registers a dependency property. |
|
| Register<T>(String, Type, T, ObjectInvalidationCallback<T>) | Registers a dependency property. |
|
| Register<T>(String, Type, T, ValidateValueCallback<T>) | Registers a dependency property. |
|
| Register<T>(String, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, PropertyKeyMetadata[]) | Registers a dependency property. |
|
| RegisterAttached<T>(String, Type, T) | Registers an attached dependency property. |
|
| RegisterAttached<T>(String, Type, T, ObjectInvalidationCallback<T>) | Registers an attached dependency property. |
|
| RegisterAttached<T>(String, Type, T, ValidateValueCallback<T>) | Registers an attached dependency property. |
|
| RegisterAttached<T>(String, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, PropertyKeyMetadata[]) | Registers an attached dependency property. |
|
Methods
Register<T>(String, Type, T)
Registers a dependency property.
public static PropertyKey<T> Register<T>(string name, Type ownerType, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ObjectInvalidationCallback<T> | invalidationCallback | A callback to invalidate an object state after a modification of the property's value. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ValidateValueCallback<T> | validateValueCallback | A callback for validation/coercision of the property's value. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
Register<T>(String, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ValidateValueCallback<T> | validateValueCallback | A callback for validation/coercision of the property's value. |
| ObjectInvalidationCallback<T> | invalidationCallback | A callback to invalidate an object state after a modification of the property's value. |
| PropertyKeyMetadata[] | metadatas | The metadatas. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
RegisterAttached<T>(String, Type, T)
Registers an attached dependency property.
public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ObjectInvalidationCallback<T> | invalidationCallback | A callback to invalidate an object state after a modification of the property's value. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ValidateValueCallback<T> | validateValueCallback | A callback for validation/coercision of the property's value. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |
RegisterAttached<T>(String, Type, T, ValidateValueCallback<T>, ObjectInvalidationCallback<T>, 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
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property. |
| System.Type | ownerType | The type that is registering the property. |
| T | defaultValue | The default value of the property. |
| ValidateValueCallback<T> | validateValueCallback | A callback for validation/coercision of the property's value. |
| ObjectInvalidationCallback<T> | invalidationCallback | A callback to invalidate an object state after a modification of the property's value. |
| PropertyKeyMetadata[] | metadatas | The metadatas. |
Returns
| Type | Description |
|---|---|
| PropertyKey<T> |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the property. |