From c2db3fbfc01aacab1e7ba30cc81f5a5ce4d8295d Mon Sep 17 00:00:00 2001
From: NaBian <836904362@qq.com>
Date: Sat, 20 Apr 2019 00:33:12 +0800
Subject: [PATCH] improved the pr
---
.../HandyControl_Core_30.csproj | 3 +
.../Themes/Styles/Base/TreeViewBaseStyle.xaml | 142 ++++++++++++++++++
.../HandyControl_Net_40.csproj | 4 +
.../Themes/Styles/Base/TreeViewBaseStyle.xaml | 4 +-
.../HandyControl_Net_GE45.csproj | 4 +
.../Themes/Styles/Base/TreeViewBaseStyle.xaml | 142 ++++++++++++++++++
.../Themes/Styles/DataGrid.xaml | 8 +-
.../Styles/NativeTabControlDemoCtl.xaml | 4 +-
.../HandyControl_Shared.projitems | 4 -
.../Themes/Styles/Base/ListBoxBaseStyle.xaml | 2 +-
.../Styles/Base/TabControlBaseStyle.xaml | 6 +
.../Themes/Styles/TabControl.xaml | 43 +++++-
.../TabItemCapsuleStyleSelector.cs | 9 +-
13 files changed, 356 insertions(+), 19 deletions(-)
create mode 100644 src/Core_30/HandyControl_Core_30/Themes/Styles/Base/TreeViewBaseStyle.xaml
rename src/{Shared/HandyControl_Shared => Net_40/HandyControl_Net_40}/Themes/Styles/Base/TreeViewBaseStyle.xaml (98%)
create mode 100644 src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
diff --git a/src/Core_30/HandyControl_Core_30/HandyControl_Core_30.csproj b/src/Core_30/HandyControl_Core_30/HandyControl_Core_30.csproj
index c407b2d6..e6ed1a51 100644
--- a/src/Core_30/HandyControl_Core_30/HandyControl_Core_30.csproj
+++ b/src/Core_30/HandyControl_Core_30/HandyControl_Core_30.csproj
@@ -17,4 +17,7 @@
C:\Code\GitHub\HandyControl\src\Core_30\HandyControl_Core_30\HandyControl.xml
+
+
+
\ No newline at end of file
diff --git a/src/Core_30/HandyControl_Core_30/Themes/Styles/Base/TreeViewBaseStyle.xaml b/src/Core_30/HandyControl_Core_30/Themes/Styles/Base/TreeViewBaseStyle.xaml
new file mode 100644
index 00000000..8984ae6f
--- /dev/null
+++ b/src/Core_30/HandyControl_Core_30/Themes/Styles/Base/TreeViewBaseStyle.xaml
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj
index f214ec89..8151d7bc 100644
--- a/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj
+++ b/src/Net_40/HandyControl_Net_40/HandyControl_Net_40.csproj
@@ -49,6 +49,10 @@
Designer
XamlIntelliSenseFileGenerator
+
+ MSBuild:Compile
+ Designer
+
Designer
XamlIntelliSenseFileGenerator
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/TreeViewBaseStyle.xaml b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/TreeViewBaseStyle.xaml
similarity index 98%
rename from src/Shared/HandyControl_Shared/Themes/Styles/Base/TreeViewBaseStyle.xaml
rename to src/Net_40/HandyControl_Net_40/Themes/Styles/Base/TreeViewBaseStyle.xaml
index 5816676b..0e3018a6 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/Base/TreeViewBaseStyle.xaml
+++ b/src/Net_40/HandyControl_Net_40/Themes/Styles/Base/TreeViewBaseStyle.xaml
@@ -49,7 +49,7 @@
-
+
@@ -106,7 +106,7 @@
-
+
diff --git a/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj b/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj
index 034c95ab..4e2a03c5 100644
--- a/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj
+++ b/src/Net_GE45/HandyControl_Net_GE45/HandyControl_Net_GE45.csproj
@@ -95,6 +95,10 @@
Designer
XamlIntelliSenseFileGenerator
+
+ MSBuild:Compile
+ Designer
+
Designer
XamlIntelliSenseFileGenerator
diff --git a/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
new file mode 100644
index 00000000..8984ae6f
--- /dev/null
+++ b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/Base/TreeViewBaseStyle.xaml
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/DataGrid.xaml b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/DataGrid.xaml
index 22e44e0c..6ab8cc46 100644
--- a/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/DataGrid.xaml
+++ b/src/Net_GE45/HandyControl_Net_GE45/Themes/Styles/DataGrid.xaml
@@ -46,7 +46,7 @@
-
+
@@ -55,7 +55,7 @@
-
+
@@ -64,14 +64,14 @@
-
+
-
+
diff --git a/src/Shared/HandyControlDemo_Shared/UserControl/Styles/NativeTabControlDemoCtl.xaml b/src/Shared/HandyControlDemo_Shared/UserControl/Styles/NativeTabControlDemoCtl.xaml
index 9e55643a..0eaf3152 100644
--- a/src/Shared/HandyControlDemo_Shared/UserControl/Styles/NativeTabControlDemoCtl.xaml
+++ b/src/Shared/HandyControlDemo_Shared/UserControl/Styles/NativeTabControlDemoCtl.xaml
@@ -91,7 +91,7 @@
-
+
@@ -133,7 +133,7 @@
-
+
diff --git a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems
index a382e54c..d648c863 100644
--- a/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems
+++ b/src/Shared/HandyControl_Shared/HandyControl_Shared.projitems
@@ -474,10 +474,6 @@
Designer
MSBuild:Compile
-
- Designer
- MSBuild:Compile
-
Designer
MSBuild:Compile
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ListBoxBaseStyle.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ListBoxBaseStyle.xaml
index d22d0ad5..eb448cfb 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/Base/ListBoxBaseStyle.xaml
+++ b/src/Shared/HandyControl_Shared/Themes/Styles/Base/ListBoxBaseStyle.xaml
@@ -8,7 +8,7 @@
-
+
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/Base/TabControlBaseStyle.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/Base/TabControlBaseStyle.xaml
index 66c0ae97..33628505 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/Base/TabControlBaseStyle.xaml
+++ b/src/Shared/HandyControl_Shared/Themes/Styles/Base/TabControlBaseStyle.xaml
@@ -157,6 +157,12 @@
+
+
+
+
+
+
diff --git a/src/Shared/HandyControl_Shared/Themes/Styles/TabControl.xaml b/src/Shared/HandyControl_Shared/Themes/Styles/TabControl.xaml
index 586874ce..870ab401 100644
--- a/src/Shared/HandyControl_Shared/Themes/Styles/TabControl.xaml
+++ b/src/Shared/HandyControl_Shared/Themes/Styles/TabControl.xaml
@@ -155,11 +155,11 @@
-
-
+
+
@@ -227,11 +227,46 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Shared/HandyControl_Shared/Tools/StyleSelector/TabItemCapsuleStyleSelector.cs b/src/Shared/HandyControl_Shared/Tools/StyleSelector/TabItemCapsuleStyleSelector.cs
index 11057ff7..9471f8cf 100644
--- a/src/Shared/HandyControl_Shared/Tools/StyleSelector/TabItemCapsuleStyleSelector.cs
+++ b/src/Shared/HandyControl_Shared/Tools/StyleSelector/TabItemCapsuleStyleSelector.cs
@@ -18,9 +18,14 @@ namespace HandyControl.Tools
var index = tabControl.Items.IndexOf(tabItem);
return index == 0
- ? ResourceHelper.GetResource