Ejemplo n.º 1
0
 private void ButtonR_OnClick(UIMouseEvent e, UIElement sender)
 {
     if (Page != MaxPage)
     {
         OnNextPage?.Invoke(e, this);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 滚动到第几页
        /// </summary>
        /// <param name="index"></param>
        public void Go(int index)
        {
            if (index == Index)
            {
                return;
            }
            if (index < 0)
            {
                OnPreviousPage?.Invoke(this, new EventArgs());
                return;
            }

            if (index >= Count)
            {
                OnNextPage?.Invoke(this, new EventArgs());
                return;
            }
            GoIndex(index);
        }
Ejemplo n.º 3
0
 private void NextButton_Click(object sender, RoutedEventArgs e)
 {
     OnNextPage?.Invoke(this, EventArgs.Empty);
 }