// Load data for the ViewModel Items private void MainPage_Loaded(object sender, RoutedEventArgs e) { if (!App.ViewModel.IsDataLoaded) { App.ViewModel.LoadData(); LoadingAnimation.Begin(); } }
private void ViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.PropertyName == "IsDataLoaded") { if (App.ViewModel.IsDataLoaded == true) { LoadingEndedAnimation.Begin(); SystemTray.ProgressIndicator.IsVisible = false; } else { LoadingAnimation.Begin(); SystemTray.ProgressIndicator.IsVisible = true; } } }
public ExtendedSplash() { this.InitializeComponent(); LoadingAnimation.Begin(); }