public MainWindow() { InitializeComponent(); DataMaster.LoadData(); MainFrame.Content = new OpeningPage(); //MainFrame.NavigationService.Navigate(new OpeningPage()); BaseViewModel.Navigation = MainFrame; MainFrame.Navigated += MainFrame_Navigated; }
private async void LoadData() { IsShowLoading = Visibility.Visible; await Task.Run(() => { DataMaster.LoadData(); }); IsShowLoading = Visibility.Hidden; ShowUserLogin(); }