Esempio n. 1
0
 private void ButtonR_OnClick(UIMouseEvent e, UIElement sender)
 {
     if (Page != MaxPage)
     {
         OnNextPage?.Invoke(e, this);
     }
 }
Esempio n. 2
0
        bool IPropertyManagerPage2Handler9.OnNextPage()
        {
            if (OnNextPage.IsRef())
            {
                return(OnNextPage());
            }

            return(true);
        }
Esempio n. 3
0
        protected async Task NextPage()
        {
            if (!IsServerPaging)
            {
                CurrentPage++;
            }
            else
            {
                await OnNextPage.InvokeAsync(this);
            }

            StateHasChanged();
        }
Esempio n. 4
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);
        }
Esempio n. 5
0
 private void NextButton_Click(object sender, RoutedEventArgs e)
 {
     OnNextPage?.Invoke(this, EventArgs.Empty);
 }