From 9122671a4b57ca0f52e4a3e7a4d81408f0364a8a Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Mon, 2 Dec 2024 23:21:51 +0800
Subject: [PATCH] chore: add avalonia CheckBox demo.
---
.../UserControl/Styles/CheckBoxDemoCtl.axaml | 26 ++++
.../Styles/CheckBoxDemoCtl.axaml.cs | 9 ++
.../Themes/Styles/CheckBox.axaml | 121 +++++++++++++++++
.../Themes/Styles/RadioButton.axaml | 26 ++--
.../Themes/Styles/Style.axaml | 1 +
.../Themes/Styles/TabItem.axaml | 8 +-
.../Themes/Styles/ToggleButton.axaml | 122 +++++++++---------
.../HandyControl_Net_40/Themes/Theme.xaml | 2 +-
.../Themes/Styles/ToggleButton.xaml | 2 +-
.../HandyControl_Shared/Themes/Theme.xaml | 4 +-
10 files changed, 239 insertions(+), 82 deletions(-)
create mode 100644 src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml
create mode 100644 src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml.cs
create mode 100644 src/Avalonia/HandyControl_Avalonia/Themes/Styles/CheckBox.axaml
diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml
new file mode 100644
index 000000000..997738302
--- /dev/null
+++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml.cs b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml.cs
new file mode 100644
index 000000000..d3b06c53b
--- /dev/null
+++ b/src/Avalonia/HandyControlDemo_Avalonia/UserControl/Styles/CheckBoxDemoCtl.axaml.cs
@@ -0,0 +1,9 @@
+namespace HandyControlDemo.UserControl;
+
+public partial class CheckBoxDemoCtl : Avalonia.Controls.UserControl
+{
+ public CheckBoxDemoCtl()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/CheckBox.axaml b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/CheckBox.axaml
new file mode 100644
index 000000000..c7cfb96de
--- /dev/null
+++ b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/CheckBox.axaml
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/RadioButton.axaml b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/RadioButton.axaml
index 6efdbedbf..7cf99c797 100644
--- a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/RadioButton.axaml
+++ b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/RadioButton.axaml
@@ -70,30 +70,32 @@
Value="{DynamicResource SecondaryBorderBrush}" />
-
-
-
+
+
-
diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/Style.axaml b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/Style.axaml
index 6a4cdb4a8..c4579693b 100644
--- a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/Style.axaml
+++ b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/Style.axaml
@@ -17,6 +17,7 @@
+
diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/TabItem.axaml b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/TabItem.axaml
index c5ce9c116..71ed5a28e 100644
--- a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/TabItem.axaml
+++ b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/TabItem.axaml
@@ -46,11 +46,11 @@
-
diff --git a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/ToggleButton.axaml b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/ToggleButton.axaml
index 12ee815b6..8b4a014f8 100644
--- a/src/Avalonia/HandyControl_Avalonia/Themes/Styles/ToggleButton.axaml
+++ b/src/Avalonia/HandyControl_Avalonia/Themes/Styles/ToggleButton.axaml
@@ -585,34 +585,34 @@
-
+
+
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
+
-
+