RegisterAssembly() public static method

Registers all view model types in an assembly.
public static RegisterAssembly ( Assembly vmAssembly ) : void
vmAssembly System.Reflection.Assembly Assembly.
return void
Exemplo n.º 1
0
        /// <summary>
        /// Registers view model classes in the entry assembly.
        /// </summary>
        public void RegisterEntryAssembly()
        {
            var entryAssembly = Assembly.GetEntryAssembly();

            if (entryAssembly != null)
            {
                VMController.RegisterAssembly(entryAssembly);
            }
        }
Exemplo n.º 2
0
 public void RegisterEntryAssembly() => VMController.RegisterAssembly(Assembly.GetEntryAssembly());
Exemplo n.º 3
0
 public void RegisterAssembly(string assemblyName) => VMController.RegisterAssembly(Assembly.Load(new AssemblyName(assemblyName)));
Exemplo n.º 4
0
 public void RegisterAssembly(Assembly assembly) => VMController.RegisterAssembly(assembly);
Exemplo n.º 5
0
 /// <summary>
 /// Register view model classes in an assembly that are subtypes of a certain type.
 /// </summary>
 public void RegisterAssembly <T>(string assemblyName) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(Assembly.Load(new AssemblyName(assemblyName)));
Exemplo n.º 6
0
 /// <summary>
 /// Register view model classes in an assembly that are subtypes of a certain type.
 /// </summary>
 public void RegisterAssembly <T>(Assembly assembly) where T : INotifyPropertyChanged => VMController.RegisterAssembly <T>(assembly);