protected virtual void OnPageSelected(object sender, PageSelectedEventArgs e)
        {
            if (invokeOnPageSelect)
            {
                ExecutePageChagedCommand(PageSelectedCommand, e.Position);

                ExecuteItemChagedCommand(ItemSelectedCommand, Adapter?.GetRawItem(e.Position));
            }
        }
Exemple #2
0
 /// <summary>
 /// page selected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PageSelected(object sender, PageSelectedEventArgs e)
 {
     ll = FindViewById <LinearLayout>(Resource.Id.ll);
     for (int i = 0; i < views.Count; i++)
     {
         dots[i]         = (ImageView)ll.GetChildAt(i);
         dots[i].Enabled = false;
     }
     dots[e.Position].Enabled = true;
 }
Exemple #3
0
 /// <summary>
 /// page selected
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PageSelected(object sender, PageSelectedEventArgs e)
 {
     ll = FindViewById<LinearLayout>(Resource.Id.ll);
     for (int i = 0; i < views.Count; i++)
     {
         dots[i] = (ImageView)ll.GetChildAt(i);
         dots[i].Enabled = false;
     }
     dots[e.Position].Enabled = true;
 }
Exemple #4
0
        private void ViewPager_PageSelected(object sender, PageSelectedEventArgs e)
        {
            if (e.Position != 0)
            {
                TitleInputFragment fragment = (TitleInputFragment)fragments[0];
                fragment.HideKeyboard();
            }

            if (e.Position == 1)
            {
                TopRatedFragment fragment = (TopRatedFragment)fragments[e.Position];
                fragment.GenerateTopRatedAsync();
            }
        }
Exemple #5
0
        private void DayPagerControl_PageSelected(object sender, PageSelectedEventArgs e)
        {
            try
            {
                if (ItemsSource != null && Adapter != null)
                {
                    var adapter = this.Adapter as DayPagerAdapter;

                    DateTime date = adapter.GetDate(e.Position);

                    try
                    {
                        CurrentDateChanged?.Invoke(this, date);
                    }

                    catch { }
                }
            }

            catch (Exception ex)
            {
                TelemetryExtension.Current?.TrackException(ex);
            }
        }
 private void ImagesPagerControl_PageSelected(object sender, PageSelectedEventArgs e)
 {
 }