diff --git a/ChangeLog.txt b/ChangeLog.txt
index b9863c8d..b60bbce0 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,10 @@
+2018.10.09 Version 1.3.2
+* new style
+ - add TabControl
+
+* fixed bug
+ - ColorPicker's text is gone.
+
2018.10.09 Version 1.3.1
* new style
- add TextBox
diff --git a/HandyControl/Controls/Carousel.xaml b/HandyControl/Controls/Carousel.xaml
index 942c03ee..85c612c8 100644
--- a/HandyControl/Controls/Carousel.xaml
+++ b/HandyControl/Controls/Carousel.xaml
@@ -13,32 +13,32 @@
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/HandyControl/Controls/ColorPicker.xaml b/HandyControl/Controls/ColorPicker.xaml
index efb8bfd1..b6d8951f 100644
--- a/HandyControl/Controls/ColorPicker.xaml
+++ b/HandyControl/Controls/ColorPicker.xaml
@@ -17,9 +17,9 @@
-
+
-
+
@@ -50,45 +50,45 @@
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
-
+
+
diff --git a/HandyControl/Controls/Growl.xaml b/HandyControl/Controls/Growl.xaml
index 93e91112..6582e3e6 100644
--- a/HandyControl/Controls/Growl.xaml
+++ b/HandyControl/Controls/Growl.xaml
@@ -40,21 +40,21 @@
-
-
+
+
-
-
+
+
diff --git a/HandyControl/Controls/Info/InfoNumericUpDown.xaml b/HandyControl/Controls/Info/InfoNumericUpDown.xaml
index c1f94499..65c786c3 100644
--- a/HandyControl/Controls/Info/InfoNumericUpDown.xaml
+++ b/HandyControl/Controls/Info/InfoNumericUpDown.xaml
@@ -44,10 +44,10 @@
-
-
+
+
-
+
@@ -56,10 +56,10 @@
-
-
-
-
+
+
+
+
diff --git a/HandyControl/Controls/Info/InfoTextBox.xaml b/HandyControl/Controls/Info/InfoTextBox.xaml
index d3e02923..364e462a 100644
--- a/HandyControl/Controls/Info/InfoTextBox.xaml
+++ b/HandyControl/Controls/Info/InfoTextBox.xaml
@@ -43,10 +43,10 @@
-
-
+
+
-
+
@@ -54,8 +54,8 @@
-
-
+
+
diff --git a/HandyControl/Controls/Pagination.xaml b/HandyControl/Controls/Pagination.xaml
index 9b3c1af9..c710071e 100644
--- a/HandyControl/Controls/Pagination.xaml
+++ b/HandyControl/Controls/Pagination.xaml
@@ -18,22 +18,22 @@
-
-
+
+
-
+
-
-
+
+
diff --git a/HandyControl/Controls/Steps/StepBar.xaml b/HandyControl/Controls/Steps/StepBar.xaml
index 927c3c89..dd225d16 100644
--- a/HandyControl/Controls/Steps/StepBar.xaml
+++ b/HandyControl/Controls/Steps/StepBar.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d">
-
-
+
+
\ No newline at end of file
diff --git a/HandyControl/Controls/Steps/StepItem.xaml b/HandyControl/Controls/Steps/StepItem.xaml
index cedcde3f..cd153e3f 100644
--- a/HandyControl/Controls/Steps/StepItem.xaml
+++ b/HandyControl/Controls/Steps/StepItem.xaml
@@ -9,9 +9,9 @@
Margin="10,0">
-
+
-
-
+
+
\ No newline at end of file
diff --git a/HandyControl/Controls/TimeBar/TimeBar.xaml b/HandyControl/Controls/TimeBar/TimeBar.xaml
index 031983ad..2073a1f0 100644
--- a/HandyControl/Controls/TimeBar/TimeBar.xaml
+++ b/HandyControl/Controls/TimeBar/TimeBar.xaml
@@ -37,12 +37,12 @@
-
+
-
-
-
-
+
+
+
+
diff --git a/HandyControl/Controls/Window/ImageBrowser.xaml b/HandyControl/Controls/Window/ImageBrowser.xaml
index 8a86cd12..b0e0ab84 100644
--- a/HandyControl/Controls/Window/ImageBrowser.xaml
+++ b/HandyControl/Controls/Window/ImageBrowser.xaml
@@ -44,21 +44,21 @@
-
-
+
+
-
+
-
-
-
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
\ No newline at end of file
diff --git a/HandyControl/Controls/Window/PopupWindow.xaml b/HandyControl/Controls/Window/PopupWindow.xaml
index 4a3f1660..fb7a0228 100644
--- a/HandyControl/Controls/Window/PopupWindow.xaml
+++ b/HandyControl/Controls/Window/PopupWindow.xaml
@@ -16,7 +16,7 @@
-
+
@@ -46,12 +46,12 @@
diff --git a/HandyControl/HandyControl.csproj b/HandyControl/HandyControl.csproj
index 34c77692..74d27940 100644
--- a/HandyControl/HandyControl.csproj
+++ b/HandyControl/HandyControl.csproj
@@ -255,6 +255,10 @@
Designer
MSBuild:Compile
+
+ Designer
+ MSBuild:Compile
+
Designer
MSBuild:Compile
@@ -435,6 +439,7 @@
PublicResXFileCodeGenerator
Lang.en.Designer.cs
+ Designer
PublicResXFileCodeGenerator
diff --git a/HandyControl/Properties/AssemblyInfo.cs b/HandyControl/Properties/AssemblyInfo.cs
index 05f94427..ce35ea91 100644
--- a/HandyControl/Properties/AssemblyInfo.cs
+++ b/HandyControl/Properties/AssemblyInfo.cs
@@ -10,5 +10,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
-[assembly: AssemblyVersion("1.3.1.1")]
-[assembly: AssemblyFileVersion("1.3.1.1")]
+[assembly: AssemblyVersion("1.3.2")]
+[assembly: AssemblyFileVersion("1.3.2")]
diff --git a/HandyControl/Themes/Basic/Brushes.xaml b/HandyControl/Themes/Basic/Brushes.xaml
index d7af76b6..ba5b95ca 100644
--- a/HandyControl/Themes/Basic/Brushes.xaml
+++ b/HandyControl/Themes/Basic/Brushes.xaml
@@ -5,46 +5,46 @@
-
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/Base/ContextMenuBaseStyle.xaml b/HandyControl/Themes/Styles/Base/ContextMenuBaseStyle.xaml
index 237d4bed..48e27fab 100644
--- a/HandyControl/Themes/Styles/Base/ContextMenuBaseStyle.xaml
+++ b/HandyControl/Themes/Styles/Base/ContextMenuBaseStyle.xaml
@@ -71,7 +71,7 @@
-
+
diff --git a/HandyControl/Themes/Styles/Base/ProgressBarBaseStyle.xaml b/HandyControl/Themes/Styles/Base/ProgressBarBaseStyle.xaml
index 0c9c3b66..0d607653 100644
--- a/HandyControl/Themes/Styles/Base/ProgressBarBaseStyle.xaml
+++ b/HandyControl/Themes/Styles/Base/ProgressBarBaseStyle.xaml
@@ -19,7 +19,7 @@
-
+
@@ -30,7 +30,7 @@
-
+
diff --git a/HandyControl/Themes/Styles/Base/TabControlBaseStyle.xaml b/HandyControl/Themes/Styles/Base/TabControlBaseStyle.xaml
new file mode 100644
index 00000000..495a1448
--- /dev/null
+++ b/HandyControl/Themes/Styles/Base/TabControlBaseStyle.xaml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/Base/ToggleButtonBaseStyle.xaml b/HandyControl/Themes/Styles/Base/ToggleButtonBaseStyle.xaml
index a421b331..33e3c5d8 100644
--- a/HandyControl/Themes/Styles/Base/ToggleButtonBaseStyle.xaml
+++ b/HandyControl/Themes/Styles/Base/ToggleButtonBaseStyle.xaml
@@ -13,7 +13,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
@@ -212,13 +212,13 @@
-
+
-
+
-
+
diff --git a/HandyControl/Themes/Styles/Clock.xaml b/HandyControl/Themes/Styles/Clock.xaml
index 2503b846..74452dd3 100644
--- a/HandyControl/Themes/Styles/Clock.xaml
+++ b/HandyControl/Themes/Styles/Clock.xaml
@@ -40,10 +40,10 @@
-
+
-
+
@@ -76,7 +76,7 @@
-
+
@@ -89,10 +89,10 @@
-
+
-
-
+
+
diff --git a/HandyControl/Themes/Styles/Expander.xaml b/HandyControl/Themes/Styles/Expander.xaml
index 8d311271..8b928dc0 100644
--- a/HandyControl/Themes/Styles/Expander.xaml
+++ b/HandyControl/Themes/Styles/Expander.xaml
@@ -32,12 +32,12 @@
-
-
+
+
-
+
diff --git a/HandyControl/Themes/Styles/ListBox.xaml b/HandyControl/Themes/Styles/ListBox.xaml
index 3f18581c..a39a616e 100644
--- a/HandyControl/Themes/Styles/ListBox.xaml
+++ b/HandyControl/Themes/Styles/ListBox.xaml
@@ -6,7 +6,7 @@
-
+
-
+
-
+
+
-
+
+
-
+
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/Slider.xaml b/HandyControl/Themes/Styles/Slider.xaml
index a29f2fde..c546b47b 100644
--- a/HandyControl/Themes/Styles/Slider.xaml
+++ b/HandyControl/Themes/Styles/Slider.xaml
@@ -22,12 +22,12 @@
-
+
-
+
@@ -56,7 +56,7 @@
-
+
@@ -135,7 +135,7 @@
-
+
diff --git a/HandyControl/Themes/Styles/TabControl.xaml b/HandyControl/Themes/Styles/TabControl.xaml
index ee9af2d9..e409f7dc 100644
--- a/HandyControl/Themes/Styles/TabControl.xaml
+++ b/HandyControl/Themes/Styles/TabControl.xaml
@@ -9,6 +9,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/TextBlock.xaml b/HandyControl/Themes/Styles/TextBlock.xaml
index 18dd6888..b6edd255 100644
--- a/HandyControl/Themes/Styles/TextBlock.xaml
+++ b/HandyControl/Themes/Styles/TextBlock.xaml
@@ -6,7 +6,7 @@
-
+
@@ -51,6 +51,6 @@
-
+
\ No newline at end of file
diff --git a/HandyControl/Themes/Styles/ToggleButton.xaml b/HandyControl/Themes/Styles/ToggleButton.xaml
index 0be61753..a2e5213c 100644
--- a/HandyControl/Themes/Styles/ToggleButton.xaml
+++ b/HandyControl/Themes/Styles/ToggleButton.xaml
@@ -85,7 +85,7 @@
-
+
@@ -99,7 +99,7 @@
-
+
+
+
\ No newline at end of file
diff --git a/HandyControlDemo/Resources/Themes/Styles/Style.xaml b/HandyControlDemo/Resources/Themes/Styles/Style.xaml
index 6d965fde..cd3f55cd 100644
--- a/HandyControlDemo/Resources/Themes/Styles/Style.xaml
+++ b/HandyControlDemo/Resources/Themes/Styles/Style.xaml
@@ -4,7 +4,7 @@
-
+
diff --git a/HandyControlDemo/Resources/Themes/Styles/TreeViewItem.xaml b/HandyControlDemo/Resources/Themes/Styles/TreeViewItem.xaml
deleted file mode 100644
index ffd16b8e..00000000
--- a/HandyControlDemo/Resources/Themes/Styles/TreeViewItem.xaml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/HandyControlDemo/UserControl/Controls/AnimationPathDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/AnimationPathDemoCtl.xaml
index db439c7e..442d5285 100644
--- a/HandyControlDemo/UserControl/Controls/AnimationPathDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/AnimationPathDemoCtl.xaml
@@ -4,6 +4,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl">
-
+
diff --git a/HandyControlDemo/UserControl/Controls/CarouselDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/CarouselDemoCtl.xaml
index bb1abf30..2de728da 100644
--- a/HandyControlDemo/UserControl/Controls/CarouselDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/CarouselDemoCtl.xaml
@@ -5,14 +5,14 @@
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl">
-
-
+
+
-
-
+
+
-
-
+
+
diff --git a/HandyControlDemo/UserControl/Controls/GrowlDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/GrowlDemoCtl.xaml
index c7af865b..faff8901 100644
--- a/HandyControlDemo/UserControl/Controls/GrowlDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/GrowlDemoCtl.xaml
@@ -6,13 +6,13 @@
Background="White">
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/HandyControlDemo/UserControl/Controls/LoadingDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/LoadingDemoCtl.xaml
index 79e7ec0b..ee0185d2 100644
--- a/HandyControlDemo/UserControl/Controls/LoadingDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/LoadingDemoCtl.xaml
@@ -5,12 +5,12 @@
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl">
-
-
+
+
-
+
diff --git a/HandyControlDemo/UserControl/Controls/StepBarDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/StepBarDemoCtl.xaml
index 6b2e34cf..fb03c3be 100644
--- a/HandyControlDemo/UserControl/Controls/StepBarDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/StepBarDemoCtl.xaml
@@ -15,8 +15,8 @@
-
-
+
+
diff --git a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml
index a1162c0e..f2ef5904 100644
--- a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml
+++ b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml
@@ -7,7 +7,47 @@
xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl"
xmlns:langs="clr-namespace:HandyControlDemo.Properties.Langs"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs
index e028dc42..e7073b17 100644
--- a/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs
+++ b/HandyControlDemo/UserControl/Main/LeftMainContent.xaml.cs
@@ -1,4 +1,6 @@
-// ReSharper disable once CheckNamespace
+using System.Windows.Controls;
+
+// ReSharper disable once CheckNamespace
namespace HandyControlDemo.UserControl
{
///
@@ -10,5 +12,19 @@ namespace HandyControlDemo.UserControl
{
InitializeComponent();
}
+
+ private void TabControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ if (e.AddedItems.Count == 0) return;
+ if (e.AddedItems[0] is TabItem tabItem && tabItem.Content is ListBox listBox)
+ {
+ if (listBox.SelectedItem != null)
+ {
+ var item = listBox.SelectedItem;
+ listBox.SelectedIndex = -1;
+ listBox.SelectedItem = item;
+ }
+ }
+ }
}
}
diff --git a/HandyControlDemo/UserControl/Main/MainContent.xaml b/HandyControlDemo/UserControl/Main/MainContent.xaml
index af71d28c..18acee22 100644
--- a/HandyControlDemo/UserControl/Main/MainContent.xaml
+++ b/HandyControlDemo/UserControl/Main/MainContent.xaml
@@ -8,9 +8,9 @@
-
+
-
+
diff --git a/HandyControlDemo/UserControl/Main/NoUserContent.xaml b/HandyControlDemo/UserControl/Main/NoUserContent.xaml
index 3bcee9ac..4523aeea 100644
--- a/HandyControlDemo/UserControl/Main/NoUserContent.xaml
+++ b/HandyControlDemo/UserControl/Main/NoUserContent.xaml
@@ -16,15 +16,15 @@
diff --git a/HandyControlDemo/UserControl/Styles/ButtonDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/ButtonDemoCtl.xaml
index 1abda4f8..e595e5aa 100644
--- a/HandyControlDemo/UserControl/Styles/ButtonDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Styles/ButtonDemoCtl.xaml
@@ -9,77 +9,77 @@
-
-
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/HandyControlDemo/UserControl/Styles/ExpanderDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/ExpanderDemoCtl.xaml
index 5cd2b108..79026010 100644
--- a/HandyControlDemo/UserControl/Styles/ExpanderDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Styles/ExpanderDemoCtl.xaml
@@ -7,16 +7,16 @@
-
+
-
+
-
+
-
+
diff --git a/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml
new file mode 100644
index 00000000..3119fab9
--- /dev/null
+++ b/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml.cs b/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml.cs
new file mode 100644
index 00000000..4fd7333e
--- /dev/null
+++ b/HandyControlDemo/UserControl/Styles/NaiveTabControlDemoCtl.xaml.cs
@@ -0,0 +1,11 @@
+// ReSharper disable once CheckNamespace
+namespace HandyControlDemo.UserControl
+{
+ public partial class NaiveTabControlDemoCtl
+ {
+ public NaiveTabControlDemoCtl()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/HandyControlDemo/UserControl/Styles/ProgressBarDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/ProgressBarDemoCtl.xaml
index b91b2591..219d8964 100644
--- a/HandyControlDemo/UserControl/Styles/ProgressBarDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Styles/ProgressBarDemoCtl.xaml
@@ -7,36 +7,36 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/HandyControlDemo/ViewModel/MainViewModel.cs b/HandyControlDemo/ViewModel/MainViewModel.cs
index 4b82379a..b9c7899e 100644
--- a/HandyControlDemo/ViewModel/MainViewModel.cs
+++ b/HandyControlDemo/ViewModel/MainViewModel.cs
@@ -1,5 +1,4 @@
using System;
-using System.Windows;
using System.Windows.Controls;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.CommandWpf;
@@ -57,9 +56,9 @@ namespace HandyControlDemo.ViewModel
///
/// 切换例子命令
///
- public RelayCommand> SwitchDemoCmd =>
- new Lazy>>(() =>
- new RelayCommand>(SwitchDemo)).Value;
+ public RelayCommand SwitchDemoCmd =>
+ new Lazy>(() =>
+ new RelayCommand(SwitchDemo)).Value;
#endregion
@@ -68,13 +67,14 @@ namespace HandyControlDemo.ViewModel
///
/// 切换例子
///
- private void SwitchDemo(RoutedPropertyChangedEventArgs