diff --git a/DotNetifyLib.Core/VMController/VMController.Registration.cs b/DotNetifyLib.Core/VMController/VMController.Registration.cs index 25359bd7..cd6dea7e 100644 --- a/DotNetifyLib.Core/VMController/VMController.Registration.cs +++ b/DotNetifyLib.Core/VMController/VMController.Registration.cs @@ -51,8 +51,8 @@ internal static List VMTypes { get { - // If no view model assembly has been registered, default to the entry assembly. - if (_registeredAssemblies.Count == 0) + // If no view model has been registered, default to the entry assembly. + if (_vmTypes.Count == 0) RegisterAssembly(Assembly.GetEntryAssembly()); // If there's deferred exception on registering assemblies, throw it now.