Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DependencyPropertyFactory Class

    Namespace: Stride.UI
    Assembly: Stride.UI.dll
    System.Object → DependencyPropertyFactory
    Derived from DependencyPropertyFactory:

    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.

    | Improve this Doc View Source

    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.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation