private void button_Admin_Click() { IsWindowVisible = false; AdminLoginWindow adminWindow = new AdminLoginWindow(); adminWindow.Show(); }
protected override void OnStartup(StartupEventArgs e) { var bootstrapper = new BootStrapper(); var container = bootstrapper.BootStrap(); // add custom accent and theme resource dictionaries ThemeManager.AddAccent("CustomAccent1", new Uri("pack://application:,,,/UniVoting.Admin;component/CustomAccents/CustomAccent.xaml")); // create custom accents ThemeManagerHelper.CreateAppStyleBy(Colors.Red); ThemeManagerHelper.CreateAppStyleBy(Colors.GreenYellow); ThemeManagerHelper.CreateAppStyleBy(Colors.Indigo, true); MainWindow = new AdminLoginWindow(); MainWindow.Show(); base.OnStartup(e); }