Class LoadableDependenciesManager
Manages the creation of dependencies between DependencyObjects and Loadables.
Namespace: Evergine.Common.Dependencies
Assembly: Evergine.Common.dll
Syntax
public class LoadableDependenciesManager
Methods
RegisterDelegateDependencyLink<T>(IDependencyObject, T, string, params object[])
Registers the delegate dependency link.
Declaration
public static void RegisterDelegateDependencyLink<T>(IDependencyObject source, T target, string updateMethodName, params object[] parameters) where T : class, ILoadable, IDependencyObject
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | source | The source. |
T | target | The target. |
string | updateMethodName | The name of the update method. |
object[] | parameters | The parameters. |
Type Parameters
Name | Description |
---|---|
T | The type of the target. |
RegisterPropertyDependencyLink<T>(IDependencyObject, string)
Registers the property dependency link.
Declaration
public static LoadableDependencyLink<T> RegisterPropertyDependencyLink<T>(IDependencyObject source, string propertyName) where T : class, ILoadable, IDependencyObject
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | source | The source. |
string | propertyName | The name of the property. |
Returns
Type | Description |
---|---|
LoadableDependencyLink<T> | The created dependency link. |
Type Parameters
Name | Description |
---|---|
T | The type of the target. |
UnregisterDelegateDependencyLink<T>(IDependencyObject, T, string, params object[])
Registers the delegate dependency link.
Declaration
public static void UnregisterDelegateDependencyLink<T>(IDependencyObject source, T target, string updateMethodName, params object[] parameters) where T : class, ILoadable, IDependencyObject
Parameters
Type | Name | Description |
---|---|---|
IDependencyObject | source | The source. |
T | target | The target. |
string | updateMethodName | The name of the update method. |
object[] | parameters | The parameters. |
Type Parameters
Name | Description |
---|---|
T | The type of target. |
Unregister<T>(T)
Unregisters the dependencies of the specified loadable.
Declaration
public static void Unregister<T>(T loadable) where T : IDependencyObject
Parameters
Type | Name | Description |
---|---|---|
T | loadable | The loadable. |
Type Parameters
Name | Description |
---|---|
T | The type of the target. |