From 32c47d3ba7ffdcdc219213ee63b6c420348d0e63 Mon Sep 17 00:00:00 2001 From: jyl Date: Fri, 22 Nov 2024 18:02:59 +0800 Subject: [PATCH] fix error in Pagination.cs --- src/Ursa/Controls/Pagination/Pagination.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ursa/Controls/Pagination/Pagination.cs b/src/Ursa/Controls/Pagination/Pagination.cs index 8f5b7031..f18f305f 100644 --- a/src/Ursa/Controls/Pagination/Pagination.cs +++ b/src/Ursa/Controls/Pagination/Pagination.cs @@ -205,7 +205,7 @@ protected override void OnApplyTemplate(TemplateAppliedEventArgs e) { base.OnApplyTemplate(e); - Button.ClickEvent.AddHandler(OnButtonClick, _previousButton, _nextButton); + Button.ClickEvent.RemoveHandler(OnButtonClick, _previousButton, _nextButton); _previousButton = e.NameScope.Find(PART_PreviousButton); _nextButton = e.NameScope.Find(PART_NextButton); _buttonPanel = e.NameScope.Find(PART_ButtonPanel);