Beispiel #1
0
        private async void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            string data = await Favorites.ReadFavorites();

            if (!string.IsNullOrEmpty(data))
            {
                lista.ItemsSource = Favorites.GetFavorites(data);
            }
            StackSearch.Visibility = Visibility.Collapsed;
            SeasonS.Visibility     = Visibility.Collapsed;
            EpisodeS.Visibility    = Visibility.Collapsed;
            Voltapag.Visibility    = Visibility.Collapsed;
            Avpag.Visibility       = Visibility.Collapsed;
            lista.SetValue(Grid.RowSpanProperty, 2);
            //lista rowspan 2
        }
Beispiel #2
0
        private async void AppBarButton_Click_Home(object sender, RoutedEventArgs e)
        {
            string data = await Favorites.ReadFavorites();

            if (!string.IsNullOrEmpty(data))
            {
                lista.ItemsSource = Favorites.GetFavorites(data);
            }
            this.DataContext = null;
            rating.Children.Clear();
            IconFilme.Source    = null;
            Voltapag.Visibility = Visibility.Collapsed;
            Avpag.Visibility    = Visibility.Collapsed;
            lista.SetValue(Grid.RowSpanProperty, 2);
            Pagina.Text = "";
            busca       = "";
        }