Table of Contents

Class DependencyPropertyFactory

Namespace
Stride.UI
Assembly
Stride.UI.dll
public static class DependencyPropertyFactory
Inheritance
DependencyPropertyFactory

Methods

RegisterAttached<T>(string, Type, T)

Registers an attached dependency property.

public static PropertyKey<T> RegisterAttached<T>(string name, Type ownerType, T defaultValue)

Parameters

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

Returns

PropertyKey<T>

Type Parameters

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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

invalidationCallback ObjectInvalidationCallback<T>

A callback to invalidate an object state after a modification of the property's value.

Returns

PropertyKey<T>

Type Parameters

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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

validateValueCallback ValidateValueCallback<T>

A callback for validation/coercision of the property's value.

Returns

PropertyKey<T>

Type Parameters

T

The 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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

validateValueCallback ValidateValueCallback<T>

A callback for validation/coercision of the property's value.

invalidationCallback ObjectInvalidationCallback<T>

A callback to invalidate an object state after a modification of the property's value.

metadatas PropertyKeyMetadata[]

The metadatas.

Returns

PropertyKey<T>

Type Parameters

T

The 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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

Returns

PropertyKey<T>

Type Parameters

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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

invalidationCallback ObjectInvalidationCallback<T>

A callback to invalidate an object state after a modification of the property's value.

Returns

PropertyKey<T>

Type Parameters

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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

validateValueCallback ValidateValueCallback<T>

A callback for validation/coercision of the property's value.

Returns

PropertyKey<T>

Type Parameters

T

The 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

name string

The name of the property.

ownerType Type

The type that is registering the property.

defaultValue T

The default value of the property.

validateValueCallback ValidateValueCallback<T>

A callback for validation/coercision of the property's value.

invalidationCallback ObjectInvalidationCallback<T>

A callback to invalidate an object state after a modification of the property's value.

metadatas PropertyKeyMetadata[]

The metadatas.

Returns

PropertyKey<T>

Type Parameters

T

The type of the property.