Class NNViewRegistrar
A locator is used to find the correct view corresponding to a viewmodel. In ReactiveUI, usually Splat is used, but others exist. This class acts as an intermediate registrar. It gathers registrations and registers them to the preferred locator.
Inheritance
System.Object
NNViewRegistrar
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NodeNetwork
Assembly: NodeNetwork.dll
Syntax
public sealed class NNViewRegistrar
Methods
| Improve this Doc View SourceAddRegistration(Func<Object>, Type)
Declaration
public static void AddRegistration(Func<object> factory, Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Object> | factory | |
System.Type | serviceType |
RegisterSplat()
Register all NodeNetwork view/viewmodel pairs to Locator.CurrentMutable.
Declaration
public static void RegisterSplat()
RegisterToLocator(Action<Func<Object>, Type>)
Declaration
public static void RegisterToLocator(Action<Func<object>, Type> newRegisterAction)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Func<System.Object>, System.Type> | newRegisterAction |