Skip to content

Commit

Permalink
Merge pull request #1555 from fpprojecta/Fix-Pagination
Browse files Browse the repository at this point in the history
Fixed jump element name of the pagination control
  • Loading branch information
NaBian authored Apr 3, 2024
2 parents d8bf35c + 7f32026 commit 0a4963c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace HandyControl.Controls;
[TemplatePart(Name = ElementPanelMain, Type = typeof(Panel))]
[TemplatePart(Name = ElementMoreRight, Type = typeof(FrameworkElement))]
[TemplatePart(Name = ElementButtonLast, Type = typeof(RadioButton))]
[TemplatePart(Name = ElementButtonLast, Type = typeof(NumericUpDown))]
[TemplatePart(Name = ElementJump, Type = typeof(NumericUpDown))]
public class Pagination : Control
{
#region Constants
Expand Down Expand Up @@ -198,7 +198,7 @@ public int PageIndex

/// <summary>
/// 表示当前选中的按钮距离左右两个方向按钮的最大间隔(4表示间隔4个按钮,如果超过则用省略号表示)
/// </summary>
/// </summary>
public static readonly DependencyProperty MaxPageIntervalProperty = DependencyProperty.Register(
nameof(MaxPageInterval), typeof(int), typeof(Pagination), new PropertyMetadata(3, OnMaxPageIntervalChanged), ValidateHelper.IsInRangeOfPosIntIncludeZero);

Expand All @@ -212,7 +212,7 @@ private static void OnMaxPageIntervalChanged(DependencyObject d, DependencyPrope

/// <summary>
/// 表示当前选中的按钮距离左右两个方向按钮的最大间隔(4表示间隔4个按钮,如果超过则用省略号表示)
/// </summary>
/// </summary>
public int MaxPageInterval
{
get => (int) GetValue(MaxPageIntervalProperty);
Expand Down Expand Up @@ -406,5 +406,5 @@ private void ToggleButton_OnChecked(object sender, RoutedEventArgs e)
PageIndex = int.Parse(button.Content.ToString());
}

#endregion Private Methods
#endregion Private Methods
}

0 comments on commit 0a4963c

Please sign in to comment.