public Home() { InitializeComponent(); epView = new MainEpisodeView(); BindingContext = epView; BackgroundColor = Settings.BlackRBGColor; MovieTypePicker = new LabelList(MovieTypePickerBtt, genresNames); ImdbTypePicker = new LabelList(ImdbTypePickerBtt, recomendationTypes); // MovieTypePicker.ItemsSource = genresNames; // ImdbTypePicker.ItemsSource = recomendationTypes; // UpdateBookmarks(); MovieTypePicker.SelectedIndex = 0; ImdbTypePicker.SelectedIndex = -1; ImdbTypePicker.SelectedIndexChanged += (o, e) => { ClearEpisodes(); PurgeThreds(21); Fething = false; if (IsRecommended) { GetFetchRecomended(); } else { GetFetch(); } // ImdbTypePickerBtt.Text = ImdbTypePicker.Items[ImdbTypePicker.SelectedIndex]; }; // MovieTypePickerBtt.Text = MovieTypePicker.Items[MovieTypePicker.SelectedIndex]; MovieTypePicker.SelectedIndexChanged += (o, e) => { ClearEpisodes(!IsRecommended); if (IsRecommended) { CloudStreamCore.Shuffle(iMDbTopList); LoadMoreImages(); } else { PurgeThreds(21); Fething = false; GetFetch(); } // MovieTypePickerBtt.Text = MovieTypePicker.Items[MovieTypePicker.SelectedIndex]; //GetFetchRecomended // print(MovieTypePicker.SelectedIndex + "<<Selected"); }; episodeView.Scrolled += (o, e) => { double maxY = episodeView.HeightRequest - episodeView.Height; //print(maxY); if (e.ScrollY >= maxY - 200) { LoadMoreImages(); } }; if (Device.RuntimePlatform == Device.UWP) { // BlueSeperator.IsVisible = false; // BlueSeperator.IsEnabled = false; OffBar.IsVisible = false; OffBar.IsEnabled = false; } else { OffBar.Source = App.GetImageSource("gradient.png"); OffBar.HeightRequest = 3; OffBar.HorizontalOptions = LayoutOptions.Fill; OffBar.ScaleX = 100; OffBar.Opacity = 0.3; OffBar.TranslationY = 9; } episodeView.VerticalScrollBarVisibility = Settings.ScrollBarVisibility; /* * ImageScroller.Scrolled += (o, e) => { * double maxY = ImageScroller.ContentSize.Height - ImageScroller.Height; * if (e.ScrollY >= maxY - 200) { * LoadMoreImages(); * } * * };*/ // MovieTypePicker.IsEnabled = false; //MovieTypePicker.IsVisible = false; }