From ac67e75388664c8db3233d2c4b5ccd8d362b4eac Mon Sep 17 00:00:00 2001 From: yezhicong <15015031796@163.com> Date: Wed, 31 Jul 2024 12:28:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=88=86=E9=A1=B5=E6=8C=89?= =?UTF-8?q?=E9=92=AEGroupName=E5=9B=BA=E5=AE=9A=E4=B8=BA1=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E7=95=8C=E9=9D=A2=E5=AD=98=E5=9C=A8=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E5=88=86=E9=A1=B5=E6=8C=89=E9=92=AE=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E6=8C=89=E9=92=AE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HandyControl_Shared/Controls/Other/Pagination.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs index 9083eaf3..fdd1bee6 100644 --- a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs +++ b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs @@ -48,6 +48,8 @@ public class Pagination : Control private bool _appliedTemplate; + private readonly string groupName = Guid.NewGuid().ToString("N"); + #endregion Data #region Public Events @@ -284,6 +286,9 @@ public class Pagination : Control _buttonLast = GetTemplateChild(ElementButtonLast) as RadioButton; _jumpNumericUpDown = GetTemplateChild(ElementJump) as NumericUpDown; + _buttonFirst.GroupName = groupName; + _buttonLast.GroupName = groupName; + CheckNull(); _appliedTemplate = true; @@ -395,7 +400,8 @@ public class Pagination : Control return new() { Style = PaginationButtonStyle, - Content = page.ToString() + Content = page.ToString(), + GroupName = groupName }; }