Пример #1
0
 // Load data for the ViewModel Items
 private void MainPage_Loaded(object sender, RoutedEventArgs e)
 {
     if (!App.ViewModel.IsDataLoaded)
     {
         App.ViewModel.LoadData();
         LoadingAnimation.Begin();
     }
 }
Пример #2
0
 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;
         }
     }
 }
Пример #3
0
 public ExtendedSplash()
 {
     this.InitializeComponent();
     LoadingAnimation.Begin();
 }