protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); ContentManager.Instance.ApplySetting(); _theme = new ElementBlueThemeResourceDictionary(); _theme.AddTheme(this); AyThread.Instance.InitDispatcher(Application.Current.Dispatcher); DataFactory.Instance.Init(); //System.Windows.Forms.Application.EnableVisualStyles();//winform控件启动样式 }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); ContentManager.Instance.ApplySetting(); AyGlobalConfig.AYUI_ConfigFileNamePath = AyGlobalConfig.ReturnCurrentFolderCombinePath2("Content/application.xml"); _theme = new ElementBlueThemeResourceDictionary(); _theme.AccentBrush = SolidColorBrushConverter.From16JinZhi("#D80A0A"); _theme.AddTheme(this); //下次切换,应该从merge移除,重新add }