diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj
index 2432672..8a78b13 100644
--- a/SubCabinetSolution/SubCabinetSolution.csproj
+++ b/SubCabinetSolution/SubCabinetSolution.csproj
@@ -42,6 +42,9 @@
..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll
True
+
+ ..\..\..\..\DLL\CSharpToolkit.dll
+
..\packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
True
@@ -244,9 +247,6 @@
TotalQueryPage.xaml
-
- PlaceHolderTextBox.xaml
-
MSBuild:Compile
Designer
@@ -282,10 +282,6 @@
-
- Designer
- MSBuild:Compile
-
@@ -303,6 +299,7 @@
+
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj
index 2432672..8a78b13 100644
--- a/SubCabinetSolution/SubCabinetSolution.csproj
+++ b/SubCabinetSolution/SubCabinetSolution.csproj
@@ -42,6 +42,9 @@
..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll
True
+
+ ..\..\..\..\DLL\CSharpToolkit.dll
+
..\packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
True
@@ -244,9 +247,6 @@
TotalQueryPage.xaml
-
- PlaceHolderTextBox.xaml
-
MSBuild:Compile
Designer
@@ -282,10 +282,6 @@
-
- Designer
- MSBuild:Compile
-
@@ -303,6 +299,7 @@
+
diff --git a/SubCabinetSolution/Views/CabinetWindow.xaml b/SubCabinetSolution/Views/CabinetWindow.xaml
index 3bab960..6451a40 100644
--- a/SubCabinetSolution/Views/CabinetWindow.xaml
+++ b/SubCabinetSolution/Views/CabinetWindow.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="高值耗材柜(科室)"
Width="1366"
Height="768"
@@ -302,9 +302,11 @@
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj
index 2432672..8a78b13 100644
--- a/SubCabinetSolution/SubCabinetSolution.csproj
+++ b/SubCabinetSolution/SubCabinetSolution.csproj
@@ -42,6 +42,9 @@
..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll
True
+
+ ..\..\..\..\DLL\CSharpToolkit.dll
+
..\packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
True
@@ -244,9 +247,6 @@
TotalQueryPage.xaml
-
- PlaceHolderTextBox.xaml
-
MSBuild:Compile
Designer
@@ -282,10 +282,6 @@
-
- Designer
- MSBuild:Compile
-
@@ -303,6 +299,7 @@
+
diff --git a/SubCabinetSolution/Views/CabinetWindow.xaml b/SubCabinetSolution/Views/CabinetWindow.xaml
index 3bab960..6451a40 100644
--- a/SubCabinetSolution/Views/CabinetWindow.xaml
+++ b/SubCabinetSolution/Views/CabinetWindow.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="高值耗材柜(科室)"
Width="1366"
Height="768"
@@ -302,9 +302,11 @@
diff --git a/SubCabinetSolution/Views/RecentUsePage.xaml b/SubCabinetSolution/Views/RecentUsePage.xaml
index 2424b41..d063373 100644
--- a/SubCabinetSolution/Views/RecentUsePage.xaml
+++ b/SubCabinetSolution/Views/RecentUsePage.xaml
@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="RecentUsePage"
d:DesignHeight="450"
d:DesignWidth="800"
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj
index 2432672..8a78b13 100644
--- a/SubCabinetSolution/SubCabinetSolution.csproj
+++ b/SubCabinetSolution/SubCabinetSolution.csproj
@@ -42,6 +42,9 @@
..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll
True
+
+ ..\..\..\..\DLL\CSharpToolkit.dll
+
..\packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
True
@@ -244,9 +247,6 @@
TotalQueryPage.xaml
-
- PlaceHolderTextBox.xaml
-
MSBuild:Compile
Designer
@@ -282,10 +282,6 @@
-
- Designer
- MSBuild:Compile
-
@@ -303,6 +299,7 @@
+
diff --git a/SubCabinetSolution/Views/CabinetWindow.xaml b/SubCabinetSolution/Views/CabinetWindow.xaml
index 3bab960..6451a40 100644
--- a/SubCabinetSolution/Views/CabinetWindow.xaml
+++ b/SubCabinetSolution/Views/CabinetWindow.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="高值耗材柜(科室)"
Width="1366"
Height="768"
@@ -302,9 +302,11 @@
diff --git a/SubCabinetSolution/Views/RecentUsePage.xaml b/SubCabinetSolution/Views/RecentUsePage.xaml
index 2424b41..d063373 100644
--- a/SubCabinetSolution/Views/RecentUsePage.xaml
+++ b/SubCabinetSolution/Views/RecentUsePage.xaml
@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="RecentUsePage"
d:DesignHeight="450"
d:DesignWidth="800"
diff --git a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml b/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml
deleted file mode 100644
index 0884bb8..0000000
--- a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo
index 31076a5..9d45698 100644
--- a/.vs/SubCabinetSolution/v17/.suo
+++ b/.vs/SubCabinetSolution/v17/.suo
Binary files differ
diff --git a/SubCabinetSolution/IconFont/iconfont.ttf b/SubCabinetSolution/IconFont/iconfont.ttf
new file mode 100644
index 0000000..2275aec
--- /dev/null
+++ b/SubCabinetSolution/IconFont/iconfont.ttf
Binary files differ
diff --git a/SubCabinetSolution/SubCabinetSolution.csproj b/SubCabinetSolution/SubCabinetSolution.csproj
index 2432672..8a78b13 100644
--- a/SubCabinetSolution/SubCabinetSolution.csproj
+++ b/SubCabinetSolution/SubCabinetSolution.csproj
@@ -42,6 +42,9 @@
..\packages\CommonServiceLocator.2.0.2\lib\net47\CommonServiceLocator.dll
True
+
+ ..\..\..\..\DLL\CSharpToolkit.dll
+
..\packages\MvvmLightLibs.5.4.1.1\lib\net45\GalaSoft.MvvmLight.dll
True
@@ -244,9 +247,6 @@
TotalQueryPage.xaml
-
- PlaceHolderTextBox.xaml
-
MSBuild:Compile
Designer
@@ -282,10 +282,6 @@
-
- Designer
- MSBuild:Compile
-
@@ -303,6 +299,7 @@
+
diff --git a/SubCabinetSolution/Views/CabinetWindow.xaml b/SubCabinetSolution/Views/CabinetWindow.xaml
index 3bab960..6451a40 100644
--- a/SubCabinetSolution/Views/CabinetWindow.xaml
+++ b/SubCabinetSolution/Views/CabinetWindow.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="高值耗材柜(科室)"
Width="1366"
Height="768"
@@ -302,9 +302,11 @@
diff --git a/SubCabinetSolution/Views/RecentUsePage.xaml b/SubCabinetSolution/Views/RecentUsePage.xaml
index 2424b41..d063373 100644
--- a/SubCabinetSolution/Views/RecentUsePage.xaml
+++ b/SubCabinetSolution/Views/RecentUsePage.xaml
@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:widgets="clr-namespace:SubCabinetSolution.Widgets"
+ xmlns:widgets="clr-namespace:CSharpToolkit.Widgets;assembly=CSharpToolkit"
Title="RecentUsePage"
d:DesignHeight="450"
d:DesignWidth="800"
diff --git a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml b/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml
deleted file mode 100644
index 0884bb8..0000000
--- a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml.cs b/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml.cs
deleted file mode 100644
index 5ebcaae..0000000
--- a/SubCabinetSolution/Widgets/PlaceHolderTextBox.xaml.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-using System.ComponentModel;
-using System.Windows;
-using System.Windows.Controls;
-
-namespace SubCabinetSolution.Widgets
-{
- ///
- /// PlaceHolderTextBox.xaml 的交互逻辑
- ///
- public partial class PlaceHolderTextBox : TextBox
- {
- public PlaceHolderTextBox()
- {
- InitializeComponent();
- }
-
- private void PlaceHolderTextBox_OnLoaded(object sender, RoutedEventArgs e)
- {
- Padding = new Thickness(5, 0, 5, 0);
- PlaceHolderPadding = new Thickness(10, 0, 10, 0);
- }
-
- #region 依赖属性
-
- [Category("自定义"), Description("该属性用于调整内部文字的Padding值")]
- public Thickness PlaceHolderPadding
- {
- get => (Thickness)GetValue(PlaceHolderPaddingProperty);
- set => SetValue(PlaceHolderPaddingProperty, value);
- }
-
- ///
- /// nameof(PlaceHolderPadding) 对应xaml里面的属性
- ///
- public static readonly DependencyProperty PlaceHolderPaddingProperty =
- DependencyProperty.Register(nameof(PlaceHolderPadding), typeof(Thickness), typeof(PlaceHolderTextBox),
- new PropertyMetadata(new Thickness(0, 0, 0, 0)));
-
- [Category("自定义"), Description("该属性用于控制TextBox边框圆角")]
- public int BorderCornerRadius
- {
- get => (int)GetValue(BorderCornerRadiusProperty);
- set => SetValue(BorderCornerRadiusProperty, value);
- }
-
- public static readonly DependencyProperty BorderCornerRadiusProperty =
- DependencyProperty.Register(nameof(BorderCornerRadius), typeof(int), typeof(PlaceHolderTextBox),
- new PropertyMetadata(0, OnBorderCornerRadiusChanged));
-
- [Category("自定义"), Description("该属性用于显示TextBox的Hint值")]
- public string HintText
- {
- get => (string)GetValue(HintTextProperty);
- set => SetValue(HintTextProperty, value);
- }
-
- public static readonly DependencyProperty HintTextProperty =
- DependencyProperty.Register(
- nameof(HintText), typeof(string), typeof(PlaceHolderTextBox), new PropertyMetadata(null)
- );
-
- #endregion
-
- #region 命令绑定
-
- #endregion
-
- #region 委托的方法
-
- ///
- /// 边框角度改变时
- ///
- private static void OnBorderCornerRadiusChanged(DependencyObject dpo, DependencyPropertyChangedEventArgs dpe)
- {
- var textBox = (PlaceHolderTextBox)dpo;
- var radius = int.Parse(dpe.NewValue.ToString());
- if (radius != 0)
- {
- textBox.Padding = new Thickness(radius - 5, 0, radius - 5, 0);
- textBox.PlaceHolderPadding = new Thickness(radius, 0, radius, 0);
- }
- else
- {
- textBox.Padding = new Thickness(radius + 5, 0, radius + 5, 0);
- textBox.PlaceHolderPadding = new Thickness(radius + 10, 0, radius + 10, 0);
- }
- }
-
- #endregion
- }
-}