From 7f32026fb5b7200f4a65d2c7a5832ac4bc5cb130 Mon Sep 17 00:00:00 2001 From: Fabio Pozzi Date: Tue, 2 Apr 2024 15:53:11 +0200 Subject: [PATCH] Fixed jump element name of the pagination control --- .../HandyControl_Shared/Controls/Other/Pagination.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs index 733de93b..9083eaf3 100644 --- a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs +++ b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs @@ -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 @@ -198,7 +198,7 @@ public class Pagination : Control /// /// 表示当前选中的按钮距离左右两个方向按钮的最大间隔(4表示间隔4个按钮,如果超过则用省略号表示) - /// + /// public static readonly DependencyProperty MaxPageIntervalProperty = DependencyProperty.Register( nameof(MaxPageInterval), typeof(int), typeof(Pagination), new PropertyMetadata(3, OnMaxPageIntervalChanged), ValidateHelper.IsInRangeOfPosIntIncludeZero); @@ -212,7 +212,7 @@ public class Pagination : Control /// /// 表示当前选中的按钮距离左右两个方向按钮的最大间隔(4表示间隔4个按钮,如果超过则用省略号表示) - /// + /// public int MaxPageInterval { get => (int) GetValue(MaxPageIntervalProperty); @@ -406,5 +406,5 @@ public class Pagination : Control PageIndex = int.Parse(button.Content.ToString()); } - #endregion Private Methods + #endregion Private Methods }