From b406016587cc8fa5367b129674a46b01e388c4b9 Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Sat, 15 Oct 2022 18:20:38 +0800
Subject: [PATCH] enhance: customizing button of pagination.
close #1099
---
.../HandyControl_Net_40/Themes/Theme.xaml | 5 ++--
.../Controls/Other/Pagination.cs | 11 +++++++-
.../Themes/Styles/Pagination.xaml | 5 ++--
.../HandyControl_Shared/Themes/Theme.xaml | 26 ++++++++++++-------
4 files changed, 33 insertions(+), 14 deletions(-)
diff --git a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
index 18d475d2..dd2062ca 100644
--- a/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
+++ b/src/Net_40/HandyControl_Net_40/Themes/Theme.xaml
@@ -13371,6 +13371,7 @@
+
@@ -13386,7 +13387,7 @@
-
+
@@ -13394,7 +13395,7 @@
-
+
diff --git a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs
index 281c5441..733de93b 100644
--- a/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs
+++ b/src/Shared/HandyControl_Shared/Controls/Other/Pagination.cs
@@ -257,6 +257,15 @@ public class Pagination : Control
#endregion
+ public static readonly DependencyProperty PaginationButtonStyleProperty = DependencyProperty.Register(
+ nameof(PaginationButtonStyle), typeof(Style), typeof(Pagination), new PropertyMetadata(default(Style)));
+
+ public Style PaginationButtonStyle
+ {
+ get => (Style) GetValue(PaginationButtonStyleProperty);
+ set => SetValue(PaginationButtonStyleProperty, value);
+ }
+
#endregion
#region Public Methods
@@ -385,7 +394,7 @@ public class Pagination : Control
{
return new()
{
- Style = ResourceHelper.GetResourceInternal