private void Window_Loaded(object sender, RoutedEventArgs e) { if (this.do_once) { this.do_once = false; Aero.MakeWindowGlass(this); if (!Aero.CanAero) { this.Background = new SolidColorBrush(Colors.Gainsboro); this.tabControl1.Margin = new Thickness(5, 5, 5, 5); } this.SetupValues(); if ((bool)this.checkBox4.IsChecked) { this.WindowState = WindowState.Minimized; } SETTING_UP = false; AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(this.LogUnhandledException); } }
private void Window_SourceInitialized(object sender, EventArgs e) { Aero.HideTitleInfo(this, Aero.WTNCA.NODRAWICON | Aero.WTNCA.NODRAWCAPTION); }