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
        /// <summary>
        /// Registers view model classes in the entry assembly.
        /// </summary>
        public void RegisterEntryAssembly()
        {
            var entryAssembly = Assembly.GetEntryAssembly();

            if (entryAssembly != null)
            {
                VMController.RegisterAssembly(entryAssembly);
            }
        }
Example #2
0
 public void RegisterEntryAssembly() => VMController.RegisterAssembly(Assembly.GetEntryAssembly());
Example #3
0
 public void RegisterAssembly(string assemblyName) => VMController.RegisterAssembly(Assembly.Load(new AssemblyName(assemblyName)));
Example #4
0
 public void RegisterAssembly(Assembly assembly) => VMController.RegisterAssembly(assembly);
 /// <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)));
 /// <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);