Class BindSceneManager
Custom attribute used to connect SceneManager instances to a component.
Inheritance
BindSceneManager
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class BindSceneManager : BindObject
Constructors
BindSceneManager(bool, bool)
Initializes a new instance of the BindSceneManager class.
Declaration
public BindSceneManager(bool isExactType = false, bool isRequired = true)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isExactType | Indicates whether to match the exact type. |
| bool | isRequired | Indicates whether this binding is required. |
Fields
IsExactType
Indicates 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
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. |