Beispiel #1
0
        // SelectedImg
        async void RandomImgsListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            int SelectedItemIndex = (RandomImgsListView.ItemsSource as ObservableCollection <Classes.DynamicCollections.RandomImgsDC>).IndexOf(e.SelectedItem as Classes.DynamicCollections.RandomImgsDC);

            Page fullImg = new Pages.FullImgPage(SelectedItemIndex, RndFullUrls, RndThumbsUrls);

            await Navigation.PushAsync(fullImg);
        }
        // Selecting Img
        async void FavoriteImgsListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            int SelectedItemIndex = (FavoriteImgsListView.ItemsSource as ObservableCollection <Classes.DynamicCollections.FavoritesContainerCollection>).IndexOf(e.SelectedItem as Classes.DynamicCollections.FavoritesContainerCollection);

            Page fullImg = new Pages.FullImgPage(SelectedItemIndex, favFull, favThumbs);

            await Navigation.PushAsync(fullImg);
        }