Beispiel #1
0
 private void ButtonR_OnClick(UIMouseEvent e, UIElement sender)
 {
     if (Page != MaxPage)
     {
         OnNextPage?.Invoke(e, this);
     }
 }
Beispiel #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);
        }
Beispiel #3
0
 private void NextButton_Click(object sender, RoutedEventArgs e)
 {
     OnNextPage?.Invoke(this, EventArgs.Empty);
 }