diff --git a/HandyControl/Controls/Other/CircleProgressBar.cs b/HandyControl/Controls/ProgressBar/CircleProgressBar.cs
similarity index 100%
rename from HandyControl/Controls/Other/CircleProgressBar.cs
rename to HandyControl/Controls/ProgressBar/CircleProgressBar.cs
diff --git a/HandyControl/Controls/ProgressBar/WaveProgressBar.cs b/HandyControl/Controls/ProgressBar/WaveProgressBar.cs
new file mode 100644
index 00000000..5f07b0be
--- /dev/null
+++ b/HandyControl/Controls/ProgressBar/WaveProgressBar.cs
@@ -0,0 +1,54 @@
+using System.Windows;
+using System.Windows.Controls.Primitives;
+using System.Windows.Media;
+using HandyControl.Data;
+
+namespace HandyControl.Controls
+{
+ public class WaveProgressBar : RangeBase
+ {
+ static WaveProgressBar()
+ {
+ FocusableProperty.OverrideMetadata(typeof(CircleProgressBar),
+ new FrameworkPropertyMetadata(ValueBoxes.FalseBox));
+ MaximumProperty.OverrideMetadata(typeof(CircleProgressBar),
+ new FrameworkPropertyMetadata(ValueBoxes.Double100Box));
+ }
+
+ public static readonly DependencyProperty TextProperty = DependencyProperty.Register(
+ "Text", typeof(string), typeof(WaveProgressBar), new PropertyMetadata(default(string)));
+
+ public string Text
+ {
+ get => (string)GetValue(TextProperty);
+ set => SetValue(TextProperty, value);
+ }
+
+ public static readonly DependencyProperty ShowTextProperty = DependencyProperty.Register(
+ "ShowText", typeof(bool), typeof(WaveProgressBar), new PropertyMetadata(ValueBoxes.TrueBox));
+
+ public bool ShowText
+ {
+ get => (bool)GetValue(ShowTextProperty);
+ set => SetValue(ShowTextProperty, value);
+ }
+
+ public static readonly DependencyProperty WaveBrushProperty = DependencyProperty.Register(
+ "WaveBrush", typeof(Brush), typeof(WaveProgressBar), new PropertyMetadata(default(Brush)));
+
+ public Brush WaveBrush
+ {
+ get => (Brush)GetValue(WaveBrushProperty);
+ set => SetValue(WaveBrushProperty, value);
+ }
+
+ public static readonly DependencyProperty WaveDiameterProperty = DependencyProperty.Register(
+ "WaveDiameter", typeof(double), typeof(WaveProgressBar), new PropertyMetadata(default(double)));
+
+ public double WaveDiameter
+ {
+ get => (double)GetValue(WaveDiameterProperty);
+ set => SetValue(WaveDiameterProperty, value);
+ }
+ }
+}
\ No newline at end of file
diff --git a/HandyControl/HandyControl.csproj b/HandyControl/HandyControl.csproj
index 6e20ed86..a01d6620 100644
--- a/HandyControl/HandyControl.csproj
+++ b/HandyControl/HandyControl.csproj
@@ -117,11 +117,12 @@
+
-
+
diff --git a/HandyControlDemo/Data/MessageToken.cs b/HandyControlDemo/Data/MessageToken.cs
index 529716b5..44fa6c82 100644
--- a/HandyControlDemo/Data/MessageToken.cs
+++ b/HandyControlDemo/Data/MessageToken.cs
@@ -36,7 +36,7 @@
public static readonly string PreviewSliderDemoCtl = nameof(PreviewSliderDemoCtl);
- public static readonly string CircleProgressBarDemoCtl = nameof(CircleProgressBarDemoCtl);
+ public static readonly string ProgressBarDemoCtl = nameof(ProgressBarDemoCtl);
public static readonly string TextBoxDemoCtl = nameof(TextBoxDemoCtl);
@@ -94,23 +94,23 @@
public static readonly string ExpanderDemoCtl = nameof(ExpanderDemoCtl);
- public static readonly string ProgressBarDemoCtl = nameof(ProgressBarDemoCtl);
+ public static readonly string NativeProgressBarDemoCtl = nameof(NativeProgressBarDemoCtl);
public static readonly string TabControlDemoCtl = nameof(TabControlDemoCtl);
public static readonly string CalendarDemoCtl = nameof(CalendarDemoCtl);
- public static readonly string NaiveDatePickerDemoCtl = nameof(NaiveDatePickerDemoCtl);
+ public static readonly string NativeDatePickerDemoCtl = nameof(NativeDatePickerDemoCtl);
- public static readonly string NaiveTextBoxDemoCtl = nameof(NaiveTextBoxDemoCtl);
+ public static readonly string NativeTextBoxDemoCtl = nameof(NativeTextBoxDemoCtl);
public static readonly string TextBlockDemoCtl = nameof(TextBlockDemoCtl);
- public static readonly string NaiveComboBoxDemoCtl = nameof(NaiveComboBoxDemoCtl);
+ public static readonly string NativeComboBoxDemoCtl = nameof(NativeComboBoxDemoCtl);
- public static readonly string NaivePasswordBoxDemoCtl = nameof(NaivePasswordBoxDemoCtl);
+ public static readonly string NativePasswordBoxDemoCtl = nameof(NativePasswordBoxDemoCtl);
- public static readonly string NaiveTabControlDemoCtl = nameof(NaiveTabControlDemoCtl);
+ public static readonly string NativeTabControlDemoCtl = nameof(NativeTabControlDemoCtl);
public static readonly string DataGridDemoCtl = nameof(DataGridDemoCtl);
@@ -126,7 +126,7 @@
public static readonly string RadioButtonDemoCtl = nameof(RadioButtonDemoCtl);
- public static readonly string NaiveScrollViewerDemoCtl = nameof(NaiveScrollViewerDemoCtl);
+ public static readonly string NativeScrollViewerDemoCtl = nameof(NativeScrollViewerDemoCtl);
public static readonly string BrushDemoCtl = nameof(BrushDemoCtl);
diff --git a/HandyControlDemo/Data/MessageToken.tt b/HandyControlDemo/Data/MessageToken.tt
index 3af06d18..549a85ed 100644
--- a/HandyControlDemo/Data/MessageToken.tt
+++ b/HandyControlDemo/Data/MessageToken.tt
@@ -21,7 +21,7 @@ var controlList = new List
"WindowDemoCtl",
"ScrollViewerDemoCtl",
"PreviewSliderDemoCtl",
- "CircleProgressBarDemoCtl",
+ "ProgressBarDemoCtl",
"TextBoxDemoCtl",
"ComboBoxDemoCtl",
"PasswordBoxDemoCtl",
@@ -53,15 +53,15 @@ var styleList = new List
"ButtonDemoCtl",
"ToggleButtonDemoCtl",
"ExpanderDemoCtl",
- "ProgressBarDemoCtl",
+ "NativeProgressBarDemoCtl",
"TabControlDemoCtl",
"CalendarDemoCtl",
- "NaiveDatePickerDemoCtl",
- "NaiveTextBoxDemoCtl",
+ "NativeDatePickerDemoCtl",
+ "NativeTextBoxDemoCtl",
"TextBlockDemoCtl",
- "NaiveComboBoxDemoCtl",
- "NaivePasswordBoxDemoCtl",
- "NaiveTabControlDemoCtl",
+ "NativeComboBoxDemoCtl",
+ "NativePasswordBoxDemoCtl",
+ "NativeTabControlDemoCtl",
"DataGridDemoCtl",
"CheckBoxDemoCtl",
"ListBoxDemoCtl",
@@ -69,7 +69,7 @@ var styleList = new List
"TreeViewDemoCtl",
"BorderDemoCtl",
"RadioButtonDemoCtl",
- "NaiveScrollViewerDemoCtl",
+ "NativeScrollViewerDemoCtl",
"BrushDemoCtl",
"SliderDemoCtl",
"GroupBoxDemoCtl",
diff --git a/HandyControlDemo/HandyControlDemo.csproj b/HandyControlDemo/HandyControlDemo.csproj
index 464bacdc..58544d2e 100644
--- a/HandyControlDemo/HandyControlDemo.csproj
+++ b/HandyControlDemo/HandyControlDemo.csproj
@@ -148,8 +148,8 @@
CirclePanelDemoCtl.xaml
-
- CircleProgressBarDemoCtl.xaml
+
+ ProgressBarDemoCtl.xaml
ClockDemoCtl.xaml
@@ -280,14 +280,14 @@
ListViewDemoCtl.xaml
-
- NaiveComboBoxDemoCtl.xaml
+
+ NativeComboBoxDemoCtl.xaml
DataGridDemoCtl.xaml
-
- NaiveDatePickerDemoCtl.xaml
+
+ NativeDatePickerDemoCtl.xaml
ExpanderDemoCtl.xaml
@@ -310,17 +310,17 @@
MenuDemoCtl.xaml
-
- NaiveScrollViewerDemoCtl.xaml
+
+ NativeScrollViewerDemoCtl.xaml
-
- NaiveTabControlDemoCtl.xaml
+
+ NativeTabControlDemoCtl.xaml
-
- NaivePasswordBoxDemoCtl.xaml
+
+ NativePasswordBoxDemoCtl.xaml
-
- ProgressBarDemoCtl.xaml
+
+ NativeProgressBarDemoCtl.xaml
TabControlDemoCtl.xaml
@@ -337,8 +337,8 @@
TextBlockDemoCtl.xaml
-
- NaiveTextBoxDemoCtl.xaml
+
+ NativeTextBoxDemoCtl.xaml
ToggleButtonDemoCtl.xaml
@@ -464,7 +464,7 @@
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
@@ -640,7 +640,7 @@
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
@@ -648,7 +648,7 @@
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
@@ -680,19 +680,19 @@
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
@@ -716,7 +716,7 @@
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
@@ -843,7 +843,6 @@
-
diff --git a/HandyControlDemo/Properties/Langs/Lang.Designer.cs b/HandyControlDemo/Properties/Langs/Lang.Designer.cs
index 3ba49d5c..073911db 100644
--- a/HandyControlDemo/Properties/Langs/Lang.Designer.cs
+++ b/HandyControlDemo/Properties/Langs/Lang.Designer.cs
@@ -222,15 +222,6 @@ namespace HandyControlDemo.Properties.Langs {
}
}
- ///
- /// 查找类似 圆形进度条 的本地化字符串。
- ///
- public static string CircleProgressBar {
- get {
- return ResourceManager.GetString("CircleProgressBar", resourceCulture);
- }
- }
-
///
/// 查找类似 清空 的本地化字符串。
///
diff --git a/HandyControlDemo/Properties/Langs/Lang.en.resx b/HandyControlDemo/Properties/Langs/Lang.en.resx
index 9c359170..031b4922 100644
--- a/HandyControlDemo/Properties/Langs/Lang.en.resx
+++ b/HandyControlDemo/Properties/Langs/Lang.en.resx
@@ -387,9 +387,6 @@
Slider
-
- CircleProgressBar
-
It's not a phone number
diff --git a/HandyControlDemo/Properties/Langs/Lang.resx b/HandyControlDemo/Properties/Langs/Lang.resx
index 858deaca..4bfbd4a1 100644
--- a/HandyControlDemo/Properties/Langs/Lang.resx
+++ b/HandyControlDemo/Properties/Langs/Lang.resx
@@ -387,9 +387,6 @@
滑块
-
- 圆形进度条
-
不是手机号码
diff --git a/HandyControlDemo/Resources/Img/LeftMainContent/ShapeArcRing_16x.png b/HandyControlDemo/Resources/Img/LeftMainContent/ShapeArcRing_16x.png
deleted file mode 100644
index 64f52301..00000000
Binary files a/HandyControlDemo/Resources/Img/LeftMainContent/ShapeArcRing_16x.png and /dev/null differ
diff --git a/HandyControlDemo/UserControl/Controls/CircleProgressBarDemoCtl.xaml b/HandyControlDemo/UserControl/Controls/ProgressBarDemoCtl.xaml
similarity index 94%
rename from HandyControlDemo/UserControl/Controls/CircleProgressBarDemoCtl.xaml
rename to HandyControlDemo/UserControl/Controls/ProgressBarDemoCtl.xaml
index 1d89bbbc..9bf00205 100644
--- a/HandyControlDemo/UserControl/Controls/CircleProgressBarDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Controls/ProgressBarDemoCtl.xaml
@@ -1,4 +1,4 @@
-
-
+
@@ -74,17 +74,17 @@
-
+
-
+
-
+
@@ -94,7 +94,7 @@
-
+
@@ -104,12 +104,12 @@
-
+
-
+
@@ -318,9 +318,9 @@
-
+
-
+
diff --git a/HandyControlDemo/UserControl/Styles/NaiveComboBoxDemoCtl.xaml b/HandyControlDemo/UserControl/Styles/NativeComboBoxDemoCtl.xaml
similarity index 97%
rename from HandyControlDemo/UserControl/Styles/NaiveComboBoxDemoCtl.xaml
rename to HandyControlDemo/UserControl/Styles/NativeComboBoxDemoCtl.xaml
index 377a8d1f..074f91c2 100644
--- a/HandyControlDemo/UserControl/Styles/NaiveComboBoxDemoCtl.xaml
+++ b/HandyControlDemo/UserControl/Styles/NativeComboBoxDemoCtl.xaml
@@ -1,4 +1,4 @@
-