Beispiel #1
0
 private void CheckEmptyView()
 {
     if (FavoritesController.HasItems())
     {
         NoContentView.Visibility = Visibility.Collapsed;
         ListQuotes.Visibility    = Visibility.Visible;
     }
     else
     {
         NoContentView.Visibility = Visibility.Visible;
         ListQuotes.Visibility    = Visibility.Collapsed;
     }
 }
Beispiel #2
0
        private void BindCollectionToView()
        {
            if (FavoritesController.IsDataLoaded())
            {
                ListQuotes.ItemsSource = FavoritesController.FavoritesCollection;
            }

            if (FavoritesController.HasItems())
            {
                NoContentView.Visibility = Visibility.Collapsed;
                ListQuotes.Visibility    = Visibility.Visible;
            }
        }