Search Results for

    Show / Hide Table of Contents

    Class BindComponent

    Custom attribute used to connect two Component instances.

    Inheritance
    object
    Attribute
    EvergineAttributeBase
    IgnoreEvergineAttribute
    BindObject
    BindComponent
    Inherited Members
    BindObject.IsRequired
    Namespace: Evergine.Framework
    Assembly: Evergine.Framework.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
    public class BindComponent : BindObject

    Constructors

    BindComponent(bool, bool, BindComponentSource, string, bool)

    Initializes a new instance of the BindComponent class.

    Declaration
    public BindComponent(bool isExactType = true, bool isRequired = true, BindComponentSource source = BindComponentSource.Owner, string tag = null, bool isRecursive = true)
    Parameters
    Type Name Description
    bool isExactType

    Whether to match the exact type.

    bool isRequired

    Whether this binding is required.

    BindComponentSource source

    The source.

    string tag

    Filter entities by this tag.

    bool isRecursive

    If set to true, the search will include all descendants of the hierarchy; otherwise, the search will only include the direct descendants.

    Fields

    IsExactType

    Specifies whether the type is exact. Used for Component finding.

    Declaration
    protected bool IsExactType
    Field Value
    Type Description
    bool

    Methods

    Resolve(DependencyObject, Type)

    Resolves this binding with the specified object.

    Declaration
    public override object Resolve(DependencyObject instance, Type propertyType)
    Parameters
    Type Name Description
    DependencyObject instance

    The object to resolve.

    Type propertyType

    The property type.

    Returns
    Type Description
    object

    The resulting object.

    Overrides
    BindObject.Resolve(DependencyObject, Type)

    ResolveCollection(DependencyObject, Type)

    Resolves this binding with the specified object.

    Declaration
    public override IEnumerable<object> ResolveCollection(DependencyObject instance, Type propertyType)
    Parameters
    Type Name Description
    DependencyObject instance

    The object to resolve.

    Type propertyType

    The type of the property.

    Returns
    Type Description
    IEnumerable<object>

    The collection.

    Overrides
    BindObject.ResolveCollection(DependencyObject, Type)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX