Class BindEntity
Custom attribute used to connect two Component instances.
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BindEntity : BindObject
Constructors
BindEntity(bool, BindEntitySource, string, bool)
Initializes a new instance of the BindEntity class.
Declaration
public BindEntity(bool isRequired = true, BindEntitySource source = BindEntitySource.Scene, string tag = null, bool isRecursive = true)
Parameters
Type | Name | Description |
---|---|---|
bool | isRequired | Whether this binding is required. |
BindEntitySource | source | The source. |
string | tag | Filter entities by this tag. |
bool | isRecursive | If set to |
Methods
Resolve(DependencyObject, Type)
Resolve 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 result object. |
Overrides
ResolveCollection(DependencyObject, Type)
Resolve 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 property type. |
Returns
Type | Description |
---|---|
IEnumerable<object> | The collection. |