Class BindObject
Custom attribute used to connect two Component instances.
Inheritance
BindObject
      
      
      
      
  Inherited Members
Namespace: Evergine.Framework.Dependencies
Assembly: Evergine.Framework.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public abstract class BindObject : IgnoreEvergineAttribute
  Constructors
BindObject()
Initializes a new instance of the BindObject class.
Declaration
public BindObject()
  BindObject(bool)
Initializes a new instance of the BindObject class.
Declaration
public BindObject(bool isRequired)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | isRequired | Whether this binding is required.  | 
      
Fields
IsRequired
Whether this binding is required.
Declaration
protected bool IsRequired
  Field Value
| Type | Description | 
|---|---|
| bool | 
Methods
Resolve(DependencyObject, Type)
Resolve this binding with the specified object.
Declaration
public abstract 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.  | 
      
ResolveCollection(DependencyObject, Type)
Resolve this binding with the specified object.
Declaration
public abstract 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.  |