Skip to content

Commit

Permalink
Merge pull request #494 from jelan123/fix-errors-in-Pagination.cs
Browse files Browse the repository at this point in the history
fix error in Pagination.cs
  • Loading branch information
rabbitism authored Nov 22, 2024
2 parents 5db7793 + 32c47d3 commit f359f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ursa/Controls/Pagination/Pagination.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PaginationButton>(PART_PreviousButton);
_nextButton = e.NameScope.Find<PaginationButton>(PART_NextButton);
_buttonPanel = e.NameScope.Find<StackPanel>(PART_ButtonPanel);
Expand Down

0 comments on commit f359f73

Please sign in to comment.