protected async override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MetroWindow splash = new SplashScreenMetro("Data Loading in Progress....."); splash.Show(); var controller = await splash.ShowProgressAsync("Tets", "Test", false, new MetroDialogSettings() { MaximumBodyHeight = 70, DialogMessageFontSize = 18 }) as ProgressDialogController; controller.SetIndeterminate(); MainWindow main = new MainWindow(); main.InitializeComponent(); Current.MainWindow = main; await Task.Delay(2500); await controller.CloseAsync(); splash.Close(); await Task.Delay(1000); main.Show(); }
protected async override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MetroWindow splash = new SplashScreenMetro("Data Loading in Progress.....", progressbarbrush: Brushes.Orange, backgroundbrush: Brushes.Black); splash.Show(); MainWindow main = new MainWindow(); main.InitializeComponent(); Current.MainWindow = main; await Task.Delay(2500); splash.Close(); await Task.Delay(1000); main.Show(); }