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