/// <summary> /// LoadPlugins /// </summary> protected virtual void LoadPlugins() { PluginsCatalog = PluginService.LoadPlugins(PluginsCatalog, GetPluginPaths(), InstanceResolverHelper, CreateRegistrantFinderBuilder(), PluginBasicConfigHelper.GetForcedPlugins()); var catalog = PluginsCatalog.ToArray(); foreach (var resourceDictionary in catalog.Where(x => x.IsNew && x.IsForeground).SelectMany(x => x.ForegroundPlugin.ResourceDictionaries)) { Application.Current.Resources.MergedDictionaries.Add(resourceDictionary); } PluginService.ActivateNewPlugins(catalog); }