public object ResolveSettingWindow(IThemeMeta theme) { if (theme.SettingEditWindow == null) { return(theme.SettingEditWindow); } return(_container.Resolve(theme.SettingEditWindow)); }
public ThemeManager(IDependencyInjector container, IEnumerable <IThemeMeta> metas, ThemeManagerSettings settings) { _container = container; _settings = settings; Themes = metas; RegisterThemes(container); RegisterThemeSettings(container); RegisterThemeSettingsWindows(container); ActiveTheme = GetActiveTheme(); }