diff --git a/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Resources/PanuonIcon.ttf b/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Resources/PanuonIcon.ttf
index f3224020..b4a6aaf5 100644
Binary files a/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Resources/PanuonIcon.ttf and b/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Resources/PanuonIcon.ttf differ
diff --git a/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Themes/Generic.xaml b/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Themes/Generic.xaml
index eb5881a8..a69d2cb0 100644
--- a/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Themes/Generic.xaml
+++ b/DotNet/WPF/Src/Core31/Panuon.UI.Silver/Themes/Generic.xaml
@@ -14,7 +14,7 @@
diff --git a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Panuon.UI.Silver.csproj b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Panuon.UI.Silver.csproj
index b74c36fa..98385658 100644
--- a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Panuon.UI.Silver.csproj
+++ b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Panuon.UI.Silver.csproj
@@ -65,11 +65,11 @@
Resources.Designer.cs
+
SettingsSingleFileGenerator
Settings.Designer.cs
-
diff --git a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Resources/PanuonIcon.ttf b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Resources/PanuonIcon.ttf
index f3224020..b4a6aaf5 100644
Binary files a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Resources/PanuonIcon.ttf and b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Resources/PanuonIcon.ttf differ
diff --git a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Themes/Generic.xaml b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Themes/Generic.xaml
index ed75baab..efb02a45 100644
--- a/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Themes/Generic.xaml
+++ b/DotNet/WPF/Src/Net40/Panuon.UI.Silver/Themes/Generic.xaml
@@ -15,7 +15,7 @@
diff --git a/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Resources/PanuonIcon.ttf b/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Resources/PanuonIcon.ttf
index f3224020..b4a6aaf5 100644
Binary files a/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Resources/PanuonIcon.ttf and b/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Resources/PanuonIcon.ttf differ
diff --git a/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Themes/Generic.xaml b/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Themes/Generic.xaml
index eb5881a8..a69d2cb0 100644
--- a/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Themes/Generic.xaml
+++ b/DotNet/WPF/Src/Net45/Panuon.UI.Silver/Themes/Generic.xaml
@@ -14,7 +14,7 @@
diff --git a/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Resources/PanuonIcon.ttf b/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Resources/PanuonIcon.ttf
index f3224020..b4a6aaf5 100644
Binary files a/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Resources/PanuonIcon.ttf and b/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Resources/PanuonIcon.ttf differ
diff --git a/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Themes/Generic.xaml b/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Themes/Generic.xaml
index 9e21c4c3..a69d2cb0 100644
--- a/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Themes/Generic.xaml
+++ b/DotNet/WPF/Src/Net472/Panuon.UI.Silver/Themes/Generic.xaml
@@ -14,7 +14,7 @@
diff --git a/DotNet/WPF/Src/Samples/Views/MainView.xaml b/DotNet/WPF/Src/Samples/Views/MainView.xaml
index d02f8e6f..c1425691 100644
--- a/DotNet/WPF/Src/Samples/Views/MainView.xaml
+++ b/DotNet/WPF/Src/Samples/Views/MainView.xaml
@@ -55,6 +55,7 @@
Click="BtnTestPendingBox_Click" />
+
+
+
+
+ Value="/Panuon.UI.Silver;component/Resources/Fonts/#PanuonIcon" />
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/PendingBoxWindow.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/PendingBoxWindow.cs
index 4571b77e..0622e4b0 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/PendingBoxWindow.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/PendingBoxWindow.cs
@@ -67,9 +67,12 @@ public PendingBoxWindow(Window owner, bool interopOwnersMask, Rect? ownerRect, s
_cancelButtonStyle = XamlUtil.FromXaml
-
+
+
+
-
-
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/CalendarXStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/CalendarXStyle.xaml
deleted file mode 100644
index 121eaf00..00000000
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/CalendarXStyle.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/ColorPickerStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/ColorPickerStyle.xaml
index df82cd94..7e7a371e 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/ColorPickerStyle.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/ColorPickerStyle.xaml
@@ -33,6 +33,10 @@
Value="{Binding Path=(i:VisualStateHelper.Foreground), RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -100,4 +104,9 @@
Value="NoResize" />
+
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/NoticeBoxStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/NoticeBoxStyle.xaml
index f480236b..63a15050 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/NoticeBoxStyle.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/NoticeBoxStyle.xaml
@@ -9,6 +9,14 @@
+
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PaginationStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PaginationStyle.xaml
index 330001f8..66532135 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PaginationStyle.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/PaginationStyle.xaml
@@ -43,6 +43,10 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/RepeatButtonStyle.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/RepeatButtonStyle.xaml
index a7274a22..d1e34d58 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/RepeatButtonStyle.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Styles/RepeatButtonStyle.xaml
@@ -19,6 +19,10 @@
Value="{Binding FontSize, Converter={StaticResource {x:Static rs:ConverterKeys.DoublePlusConverter}}, ConverterParameter=6, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
_imageFileFormats = new List()
{
- ".bmp", ".jpg", ".jpe", ".jpeg", ".gif", ".tif", ".ico"
+ ".bmp", ".jpg", ".jpe", ".png", ".jpeg", ".gif", ".tif", ".ico"
};
public override DataTemplate SelectTemplate(object item, DependencyObject container)
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ButtonTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ButtonTemplate.xaml
index dab26b98..2c04e349 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ButtonTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ButtonTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXItemTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXItemTemplate.xaml
index 72dc6eaf..666006db 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXItemTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXItemTemplate.xaml
@@ -11,14 +11,14 @@
-
-
+
-
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXTemplate.xaml
index 6ab7e779..c2403c77 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CalendarXTemplate.xaml
@@ -11,11 +11,11 @@
-
-
+
-
+
@@ -50,7 +50,7 @@
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CardTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CardTemplate.xaml
index fc475247..d78f3499 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CardTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CardTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CheckBoxTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CheckBoxTemplate.xaml
index e072e4eb..3e14a97c 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CheckBoxTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/CheckBoxTemplate.xaml
@@ -19,7 +19,7 @@
-
-
+
-
+
+
+
+
+
+
+
+ Value="{Binding Path=(local:CheckBoxHelper.NullableForeground), RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
+ Value="{Binding Path=(local:CheckBoxHelper.NullableForeground), RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ColorPickerTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ColorPickerTemplate.xaml
index 9c816b73..a9876d4c 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ColorPickerTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ColorPickerTemplate.xaml
@@ -12,7 +12,7 @@
-
-
-
+
-
+
-
-
+
+
-
+
-
-
+
-
+
-
+
-
+
-
-
+
-
-
+
+
+
-
-
+
-
+
-
-
+
+
-
+
-
-
+
-
+
@@ -199,9 +201,9 @@
KeyboardNavigation.DirectionalNavigation="Contained" />
-
+
-
+
-
-
-
-
+
-
+
-
-
+
+
-
+
-
-
+
-
+
@@ -459,9 +460,9 @@
-
+
-
+
+ TargetType="local:ContentControlX">
-
-
-
+
-
+
-
-
+
+
-
-
+
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ContextMenuTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ContextMenuTemplate.xaml
index 51050644..79ef7649 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ContextMenuTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ContextMenuTemplate.xaml
@@ -11,17 +11,17 @@
-
-
+
-
-
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/DrawerTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/DrawerTemplate.xaml
index e673ff18..1c1c4352 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/DrawerTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/DrawerTemplate.xaml
@@ -12,7 +12,7 @@
-
-
+
-
-
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
+
+
-
-
+
+
-
+
-
-
+
-
+
-
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ExpanderTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ExpanderTemplate.xaml
index f0b22f93..9032fa35 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ExpanderTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ExpanderTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
@@ -202,7 +202,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/GroupBoxTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/GroupBoxTemplate.xaml
index 3a0e4471..a89641f2 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/GroupBoxTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/GroupBoxTemplate.xaml
@@ -11,7 +11,7 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
-
+
-
+
-
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ListViewItemTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ListViewItemTemplate.xaml
index a6e56eae..f37d6383 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ListViewItemTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ListViewItemTemplate.xaml
@@ -16,7 +16,7 @@
-
-
+
-
-
-
+
-
+
-
-
+
+
-
+
@@ -151,12 +151,12 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -307,7 +352,7 @@
-
-
-
+
-
+
-
-
+
+
-
+
@@ -440,12 +485,12 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/MenuTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/MenuTemplate.xaml
index 95fa77a7..94fd69a3 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/MenuTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/MenuTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/NoticeBoxItemTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/NoticeBoxItemTemplate.xaml
index 1275d0fd..856be304 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/NoticeBoxItemTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/NoticeBoxItemTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PaginationItemTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PaginationItemTemplate.xaml
index 6df8b62f..6d86620e 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PaginationItemTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PaginationItemTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PasswordBoxTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PasswordBoxTemplate.xaml
index 2ceec11f..35282809 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PasswordBoxTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/PasswordBoxTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
+
+
+
+
+
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RadioButtonTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RadioButtonTemplate.xaml
index d932949c..28947b82 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RadioButtonTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RadioButtonTemplate.xaml
@@ -19,7 +19,7 @@
-
-
+
-
+
+
+
+
+
+
+
+ Value="{Binding Path=(local:RadioButtonHelper.NullableForeground), RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
+ Value="{Binding Path=(local:RadioButtonHelper.NullableForeground), RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RepeatButtonTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RepeatButtonTemplate.xaml
index efac1aea..c1aa343a 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RepeatButtonTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/RepeatButtonTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ScrollViewerTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ScrollViewerTemplate.xaml
index 2c69fc4c..3e86f7a7 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ScrollViewerTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ScrollViewerTemplate.xaml
@@ -14,10 +14,14 @@
+
+
+
+
+
+
+
+
+ Value="3" />
+ Value="3" />
+ Value="3" />
+ Value="3" />
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/SwitchTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/SwitchTemplate.xaml
index 4ad9f99f..6a6e016a 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/SwitchTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/SwitchTemplate.xaml
@@ -11,91 +11,92 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TabControlTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TabControlTemplate.xaml
index 846b8815..c6ce6907 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TabControlTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TabControlTemplate.xaml
@@ -21,7 +21,7 @@
-
-
+
-
-
+
-
-
+
-
-
+
+
+
+
+
+
+
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ThumbTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ThumbTemplate.xaml
index 7c62c4a9..d80b1267 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ThumbTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ThumbTemplate.xaml
@@ -11,7 +11,7 @@
-
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ToolTipTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ToolTipTemplate.xaml
index e82075a0..b49c24f9 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ToolTipTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/ToolTipTemplate.xaml
@@ -11,7 +11,7 @@
-
-
+
-
-
+
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TreeViewItemTemplate.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TreeViewItemTemplate.xaml
index 1d9de5e0..366e5dd6 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TreeViewItemTemplate.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Templates/TreeViewItemTemplate.xaml
@@ -12,7 +12,7 @@
-
-
+
-
+
-
+
-
-
+
-
-
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ColorPicker.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ColorPicker.cs
index 3a17d706..fba97c23 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ColorPicker.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ColorPicker.cs
@@ -501,6 +501,7 @@ private static void OnSelectedColorChanged(DependencyObject d, DependencyPropert
var colorPicker = (ColorPicker)d;
colorPicker.UpdateColorSelectorSelectedColor();
colorPicker.UpdateText();
+ colorPicker.RaiseEvent(new SelectedValueChangedEventArgs(SelectedColorChangedEvent, (Color?)e.OldValue, (Color?)e.NewValue));
}
private void EditableTextBox_TextChanged(object sender, TextChangedEventArgs e)
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/ContentControlX.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ContentControlX.cs
similarity index 97%
rename from DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/ContentControlX.cs
rename to DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ContentControlX.cs
index 0ea6dabe..ecc47f34 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/ContentControlX.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/ContentControlX.cs
@@ -1,16 +1,16 @@
-using Panuon.UI.Silver.Internal.Utils;
-using System;
+using Panuon.UI.Silver.Internal;
+using Panuon.UI.Silver.Internal.Utils;
+using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Effects;
-using System.Linq;
-namespace Panuon.UI.Silver.Internal
+namespace Panuon.UI.Silver
{
[TemplatePart(Name = IconPresenterPartName, Type = typeof(IconPresenter))]
- class ContentControlX : ContentControl
+ public class ContentControlX : ContentControl
{
#region Fields
private const string IconPresenterPartName = "PART_Icon";
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/FormGroup.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/FormGroup.cs
index daa818d0..878fbb3d 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/FormGroup.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/FormGroup.cs
@@ -236,6 +236,17 @@ public string GroupName
DependencyProperty.Register("GroupName", typeof(string), typeof(FormGroup), new PropertyMetadata(OnGroupNameChanged));
#endregion
+ #region ExtendControl
+ public object ExtendControl
+ {
+ get { return (object)GetValue(ExtendControlProperty); }
+ set { SetValue(ExtendControlProperty, value); }
+ }
+
+ public static readonly DependencyProperty ExtendControlProperty =
+ DependencyProperty.Register("ExtendControl", typeof(object), typeof(FormGroup));
+ #endregion
+
#endregion
#region Overrides
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/CustomPopup.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/PopupX.cs
similarity index 95%
rename from DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/CustomPopup.cs
rename to DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/PopupX.cs
index 6851f286..691bbe9e 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver.Internal/Controls/CustomPopup.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/PopupX.cs
@@ -6,16 +6,16 @@
using System.Windows.Interop;
using System.Windows.Media;
-namespace Panuon.UI.Silver.Internal
+namespace Panuon.UI.Silver
{
- class CustomPopup : Popup
+ public class PopupX : Popup
{
#region Fields
private WeakReference _parentWindow;
#endregion
#region Ctor
- public CustomPopup()
+ public PopupX()
{
base.Placement = PlacementMode.Custom;
CustomPopupPlacementCallback = PopupPlacementCallback;
@@ -32,7 +32,7 @@ public CustomPopup()
}
public new static readonly DependencyProperty PlacementProperty =
- DependencyProperty.Register("Placement", typeof(PopupXPlacement), typeof(CustomPopup), new PropertyMetadata(PopupXPlacement.Bottom));
+ DependencyProperty.Register("Placement", typeof(PopupXPlacement), typeof(PopupX), new PropertyMetadata(PopupXPlacement.Bottom));
#endregion
#region ActualPlacement
@@ -43,7 +43,7 @@ public PopupXPlacement ActualPlacement
}
public static readonly DependencyProperty ActualPlacementProperty =
- DependencyProperty.Register("ActualPlacement", typeof(PopupXPlacement), typeof(CustomPopup));
+ DependencyProperty.Register("ActualPlacement", typeof(PopupXPlacement), typeof(PopupX));
#endregion
#region RelativePosition
@@ -54,7 +54,7 @@ public Point RelativePosition
}
public static readonly DependencyProperty RelativePositionProperty =
- DependencyProperty.Register("RelativePosition", typeof(Point), typeof(CustomPopup));
+ DependencyProperty.Register("RelativePosition", typeof(Point), typeof(PopupX));
#endregion
#endregion
@@ -64,10 +64,10 @@ protected override void OnOpened(EventArgs e)
{
var hwnd = ((HwndSource)PresentationSource.FromVisual(Child)).Handle;
- if (Win32Util.GetWindowRect(hwnd, out Win32Util.RECT rect))
- {
- Win32Util.SetWindowPos(hwnd, -2, rect.Left, rect.Top, (int)this.Width, (int)this.Height, 0);
- }
+ //if (Win32Util.GetWindowRect(hwnd, out Win32Util.RECT rect))
+ //{
+ // Win32Util.SetWindowPos(hwnd, -2, rect.Left, rect.Top, (int)this.Width, (int)this.Height, 0);
+ //}
var parentWindow = Window.GetWindow(this);
if (parentWindow != null)
@@ -80,8 +80,8 @@ protected override void OnOpened(EventArgs e)
parentWindow.MouseDown -= Window_MouseDown;
parentWindow.MouseDown += Window_MouseDown;
}
- base.OnOpened(e);
UpdateActualPlacement();
+ base.OnOpened(e);
}
protected override void OnClosed(EventArgs e)
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/WIndowX.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/WIndowX.cs
index cda077c8..c685b849 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/WIndowX.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Controls/WIndowX.cs
@@ -44,6 +44,8 @@ public class WindowX : Window, INotifyPropertyChanged
private WindowState _lastWindowState;
+ private WindowStyle _lastWindowStyle;
+
private bool _isLoaded;
#endregion
@@ -64,6 +66,8 @@ public WindowX()
#region Events
public event PropertyChangedEventHandler PropertyChanged;
+
+ public event EventHandler FullScreenChanged;
#endregion
#region Overrides
@@ -89,10 +93,14 @@ public override void OnApplyTemplate()
#region OnPreviewKeyUp
protected override void OnPreviewKeyUp(KeyEventArgs e)
{
- if (e.Key == Key.Escape && IsEscEnabled)
+ if (IsEscEnabled && e.Key == Key.Escape)
{
Close();
}
+ else if(IsF11Enabled && e.Key == Key.F11)
+ {
+ SetCurrentValue(IsFullScreenProperty, !IsFullScreen);
+ }
base.OnPreviewKeyUp(e);
}
#endregion
@@ -144,6 +152,17 @@ public bool IsEscEnabled
DependencyProperty.Register("IsEscEnabled", typeof(bool), typeof(WindowX));
#endregion
+ #region IsF11Enabled
+ public bool IsF11Enabled
+ {
+ get { return (bool)GetValue(IsF11EnabledProperty); }
+ set { SetValue(IsF11EnabledProperty, value); }
+ }
+
+ public static readonly DependencyProperty IsF11EnabledProperty =
+ DependencyProperty.Register("IsF11Enabled", typeof(bool), typeof(WindowX));
+ #endregion
+
#region CanClose
public bool CanClose
{
@@ -254,6 +273,17 @@ public bool InteropOwnersMask
DependencyProperty.Register("Effect", typeof(WindowXEffect), typeof(WindowX), new PropertyMetadata(null, OnWindowXEffectChanged));
#endregion
+ #region IsFullScreen
+ public bool IsFullScreen
+ {
+ get { return (bool)GetValue(IsFullScreenProperty); }
+ set { SetValue(IsFullScreenProperty, value); }
+ }
+
+ public static readonly DependencyProperty IsFullScreenProperty =
+ DependencyProperty.Register("IsFullScreen", typeof(bool), typeof(WindowX), new PropertyMetadata(false, OnIsFullScreenChanged));
+ #endregion
+
#region IsClosed
public bool IsClosed { get; private set; }
#endregion
@@ -315,7 +345,7 @@ internal static void SetLastPosition(DependencyObject obj, Point? value)
#region Close
public new void Close()
{
- CanClose = true;
+ SetCurrentValue(CanCloseProperty, true);
base.Close();
}
#endregion
@@ -324,7 +354,7 @@ internal static void SetLastPosition(DependencyObject obj, Point? value)
public void Minimize()
{
_lastWindowState = WindowState;
- WindowState = WindowState.Minimized;
+ SetCurrentValue(WindowStateProperty, WindowState.Minimized);
}
#endregion
@@ -332,7 +362,7 @@ public void Minimize()
public void Maximize()
{
_lastWindowState = WindowState;
- WindowState = WindowState.Maximized;
+ SetCurrentValue(WindowStateProperty, WindowState.Maximized);
}
#endregion
@@ -340,7 +370,7 @@ public void Maximize()
public void Normalmize()
{
_lastWindowState = WindowState;
- WindowState = WindowState.Normal;
+ SetCurrentValue(WindowStateProperty, WindowState.Normal);
}
#endregion
@@ -350,7 +380,7 @@ public void MaximizeOrRestore()
_lastWindowState = WindowState;
if (WindowState == WindowState.Maximized)
{
- WindowState = _lastWindowState;
+ SetCurrentValue(WindowStateProperty, _lastWindowState);
}
else
{
@@ -365,7 +395,7 @@ public void MinimizeOrRestore()
_lastWindowState = WindowState;
if (WindowState == WindowState.Minimized)
{
- WindowState = _lastWindowState;
+ SetCurrentValue(WindowStateProperty, _lastWindowState);
}
else
{
@@ -409,6 +439,29 @@ public void Set(ref T identifer, T value, [CallerMemberName] string propertyN
#endregion
#region Event Handlers
+ private static void OnIsFullScreenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ var windowX = (WindowX)d;
+ windowX.OnFullScreenChanged();
+ }
+
+ private void OnFullScreenChanged()
+ {
+ if (IsFullScreen)
+ {
+ _lastWindowState = WindowState;
+ _lastWindowStyle = WindowStyle;
+ SetCurrentValue(WindowStyleProperty, WindowStyle.None);
+ SetCurrentValue(WindowStateProperty, WindowState.Maximized);
+ }
+ else
+ {
+ SetCurrentValue(WindowStyleProperty, _lastWindowStyle);
+ SetCurrentValue(WindowStateProperty, _lastWindowState);
+ }
+ FullScreenChanged?.Invoke(this, EventArgs.Empty);
+ }
+
private static void OnWindowXEffectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var windowX = (WindowX)d;
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/CheckBoxHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/CheckBoxHelper.cs
index 5cf58d0f..6fb5b2c7 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/CheckBoxHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/CheckBoxHelper.cs
@@ -262,19 +262,19 @@ public static void SetNullableBackground(CheckBox checkBox, Brush value)
DependencyProperty.RegisterAttached("NullableBackground", typeof(Brush), typeof(CheckBoxHelper));
#endregion
- #region NullableForeround
- public static Brush GetNullableForeround(CheckBox checkBox)
+ #region NullableForeground
+ public static Brush GetNullableForeground(CheckBox checkBox)
{
- return (Brush)checkBox.GetValue(NullableForeroundProperty);
+ return (Brush)checkBox.GetValue(NullableForegroundProperty);
}
- public static void SetNullableForeround(CheckBox checkBox, Brush value)
+ public static void SetNullableForeground(CheckBox checkBox, Brush value)
{
- checkBox.SetValue(NullableForeroundProperty, value);
+ checkBox.SetValue(NullableForegroundProperty, value);
}
- public static readonly DependencyProperty NullableForeroundProperty =
- DependencyProperty.RegisterAttached("NullableForeround", typeof(Brush), typeof(CheckBoxHelper));
+ public static readonly DependencyProperty NullableForegroundProperty =
+ DependencyProperty.RegisterAttached("NullableForeground", typeof(Brush), typeof(CheckBoxHelper));
#endregion
#region NullableBorderBrush
@@ -293,18 +293,18 @@ public static void SetNullableBorderBrush(CheckBox checkBox, Brush value)
#endregion
#region NullableBorderThickness
- public static Thickness GetNullableBorderThickness(CheckBox checkBox)
+ public static Thickness? GetNullableBorderThickness(CheckBox checkBox)
{
return (Thickness)checkBox.GetValue(NullableBorderThicknessProperty);
}
- public static void SetNullableBorderThickness(CheckBox checkBox, Thickness value)
+ public static void SetNullableBorderThickness(CheckBox checkBox, Thickness? value)
{
checkBox.SetValue(NullableBorderThicknessProperty, value);
}
public static readonly DependencyProperty NullableBorderThicknessProperty =
- DependencyProperty.RegisterAttached("NullableBorderThickness", typeof(Thickness), typeof(CheckBoxHelper));
+ DependencyProperty.RegisterAttached("NullableBorderThickness", typeof(Thickness?), typeof(CheckBoxHelper));
#endregion
#region NullableGlyphBrush
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ComboBoxHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ComboBoxHelper.cs
index 322cc38e..6c907543 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ComboBoxHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ComboBoxHelper.cs
@@ -80,18 +80,18 @@ public static void SetIcon(ComboBox comboBox, object value)
#endregion
#region Watermark
- public static string GetWatermark(ComboBox comboBox)
+ public static object GetWatermark(ComboBox comboBox)
{
- return (string)comboBox.GetValue(WatermarkProperty);
+ return (object)comboBox.GetValue(WatermarkProperty);
}
- public static void SetWatermark(ComboBox comboBox, string value)
+ public static void SetWatermark(ComboBox comboBox, object value)
{
comboBox.SetValue(WatermarkProperty, value);
}
public static readonly DependencyProperty WatermarkProperty =
- DependencyProperty.RegisterAttached("Watermark", typeof(string), typeof(ComboBoxHelper));
+ DependencyProperty.RegisterAttached("Watermark", typeof(object), typeof(ComboBoxHelper));
#endregion
#region WatermarkBrush
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ContextMenuHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ContextMenuHelper.cs
index 532722d3..e95fb58f 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ContextMenuHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ContextMenuHelper.cs
@@ -101,6 +101,36 @@ public static void SetBorderThickness(ContextMenu contextMenu, Thickness value)
#endregion
+ #region CornerRadius
+ public static CornerRadius GetCornerRadius(ContextMenu contextMenu)
+ {
+ return (CornerRadius)contextMenu.GetValue(CornerRadiusProperty);
+ }
+
+ public static void SetCornerRadius(ContextMenu contextMenu, CornerRadius value)
+ {
+ contextMenu.SetValue(CornerRadiusProperty, value);
+ }
+
+ public static readonly DependencyProperty CornerRadiusProperty =
+ DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(ContextMenuHelper));
+ #endregion
+
+ #region ShadowColor
+ public static Color? GetShadowColor(ContextMenu contextMenu)
+ {
+ return (Color?)contextMenu.GetValue(ShadowColorProperty);
+ }
+
+ public static void SetShadowColor(ContextMenu contextMenu, Color? value)
+ {
+ contextMenu.SetValue(ShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ShadowColorProperty =
+ DependencyProperty.RegisterAttached("ShadowColor", typeof(Color?), typeof(ContextMenuHelper));
+ #endregion
+
#region Padding
public static Thickness GetPadding(ContextMenu contextMenu)
{
@@ -359,6 +389,51 @@ public static void SetItemsClickBorderBrush(ContextMenu contextMenu, Brush value
DependencyProperty.RegisterAttached("ItemsClickBorderBrush", typeof(Brush), typeof(ContextMenuHelper));
#endregion
+ #region ItemsOpenedBackground
+ public static Brush GetItemsOpenedBackground(ContextMenu contextMenu)
+ {
+ return (Brush)contextMenu.GetValue(ItemsOpenedBackgroundProperty);
+ }
+
+ public static void SetItemsOpenedBackground(ContextMenu contextMenu, Brush value)
+ {
+ contextMenu.SetValue(ItemsOpenedBackgroundProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsOpenedBackgroundProperty =
+ DependencyProperty.RegisterAttached("ItemsOpenedBackground", typeof(Brush), typeof(ContextMenuHelper));
+ #endregion
+
+ #region ItemsOpenedForeground
+ public static Brush GetItemsOpenedForeground(ContextMenu contextMenu)
+ {
+ return (Brush)contextMenu.GetValue(ItemsOpenedForegroundProperty);
+ }
+
+ public static void SetItemsOpenedForeground(ContextMenu contextMenu, Brush value)
+ {
+ contextMenu.SetValue(ItemsOpenedForegroundProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsOpenedForegroundProperty =
+ DependencyProperty.RegisterAttached("ItemsOpenedForeground", typeof(Brush), typeof(ContextMenuHelper));
+ #endregion
+
+ #region ItemsOpenedBorderBrush
+ public static Brush GetItemsOpenedBorderBrush(ContextMenu contextMenu)
+ {
+ return (Brush)contextMenu.GetValue(ItemsOpenedBorderBrushProperty);
+ }
+
+ public static void SetItemsOpenedBorderBrush(ContextMenu contextMenu, Brush value)
+ {
+ contextMenu.SetValue(ItemsOpenedBorderBrushProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsOpenedBorderBrushProperty =
+ DependencyProperty.RegisterAttached("ItemsOpenedBorderBrush", typeof(Brush), typeof(ContextMenuHelper));
+ #endregion
+
#region ItemsCheckedBackground
public static Brush GetItemsCheckedBackground(ContextMenu contextMenu)
{
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxHelper.cs
index f9e5be84..72a1b361 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxHelper.cs
@@ -1,4 +1,5 @@
using Panuon.UI.Core;
+using Panuon.UI.Silver.Internal;
using Panuon.UI.Silver.Internal.Utils;
using System;
using System.ComponentModel;
@@ -47,6 +48,36 @@ public static readonly RoutedEvent ItemRemovedEvent
#region Properties
+ #region CornerRadius
+ public static CornerRadius GetCornerRadius(ListBox listBox)
+ {
+ return (CornerRadius)listBox.GetValue(CornerRadiusProperty);
+ }
+
+ public static void SetCornerRadius(ListBox listBox, CornerRadius value)
+ {
+ listBox.SetValue(CornerRadiusProperty, value);
+ }
+
+ public static readonly DependencyProperty CornerRadiusProperty =
+ DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(ListBoxHelper));
+ #endregion
+
+ #region ShadowColor
+ public static Color? GetShadowColor(ListBox listBox)
+ {
+ return (Color?)listBox.GetValue(ShadowColorProperty);
+ }
+
+ public static void SetShadowColor(ListBox listBox, Color? value)
+ {
+ listBox.SetValue(ShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ShadowColorProperty =
+ VisualStateHelper.ShadowColorProperty.AddOwner(typeof(ListBoxHelper));
+ #endregion
+
#region RemoveButtonStyle
public static Style GetRemoveButtonStyle(ListBox listBox)
{
@@ -259,6 +290,21 @@ public static void SetItemsPadding(ListBox listBox, Thickness value)
DependencyProperty.RegisterAttached("ItemsPadding", typeof(Thickness), typeof(ListBoxHelper));
#endregion
+ #region ItemsShadowColor
+ public static Color? GetItemsShadowColor(ListBox listBox)
+ {
+ return (Color?)listBox.GetValue(ItemsShadowColorProperty);
+ }
+
+ public static void SetItemsShadowColor(ListBox listBox, Color? value)
+ {
+ listBox.SetValue(ItemsShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsShadowColorProperty =
+ DependencyProperty.RegisterAttached("ItemsShadowColor", typeof(Color?), typeof(ListBoxHelper));
+ #endregion
+
#region ItemsCornerRadius
public static CornerRadius GetItemsCornerRadius(ListBox listBox)
{
@@ -366,6 +412,21 @@ public static void SetItemsHoverBorderBrush(ListBox listBox, Brush value)
DependencyProperty.RegisterAttached("ItemsHoverBorderBrush", typeof(Brush), typeof(ListBoxHelper));
#endregion
+ #region ItemsHoverShadowColor
+ public static Color? GetItemsHoverShadowColor(ListBox listBox)
+ {
+ return (Color?)listBox.GetValue(ItemsHoverShadowColorProperty);
+ }
+
+ public static void SetItemsHoverShadowColor(ListBox listBox, Color? value)
+ {
+ listBox.SetValue(ItemsHoverShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsHoverShadowColorProperty =
+ DependencyProperty.RegisterAttached("ItemsHoverShadowColor", typeof(Color?), typeof(ListBoxHelper));
+ #endregion
+
#region ItemsSelectedBackground
public static Brush GetItemsSelectedBackground(ListBox listBox)
{
@@ -411,6 +472,21 @@ public static void SetItemsSelectedBorderBrush(ListBox listBox, Brush value)
DependencyProperty.RegisterAttached("ItemsSelectedBorderBrush", typeof(Brush), typeof(ListBoxHelper));
#endregion
+ #region ItemsSelectedShadowColor
+ public static Color? GetItemsSelectedShadowColor(ListBox listBox)
+ {
+ return (Color?)listBox.GetValue(ItemsSelectedShadowColorProperty);
+ }
+
+ public static void SetItemsSelectedShadowColor(ListBox listBox, Color? value)
+ {
+ listBox.SetValue(ItemsSelectedShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ItemsSelectedShadowColorProperty =
+ DependencyProperty.RegisterAttached("ItemsSelectedShadowColor", typeof(Color?), typeof(ListBoxHelper));
+ #endregion
+
#region ItemsSelectedBorderThickness
public static Thickness? GetItemsSelectedBorderThickness(ListBox listBox)
{
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxItemHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxItemHelper.cs
index 4c5d95cd..097664b4 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxItemHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ListBoxItemHelper.cs
@@ -52,6 +52,21 @@ public static void SetCornerRadius(ListBoxItem listBoxItem, CornerRadius value)
DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(ListBoxItemHelper));
#endregion
+ #region ShadowColor
+ public static Color? GetShadowColor(ListBoxItem listBoxItem)
+ {
+ return (Color?)listBoxItem.GetValue(ShadowColorProperty);
+ }
+
+ public static void SetShadowColor(ListBoxItem listBoxItem, Color? value)
+ {
+ listBoxItem.SetValue(ShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty ShadowColorProperty =
+ VisualStateHelper.ShadowColorProperty.AddOwner(typeof(ListBoxItemHelper));
+ #endregion
+
#region RemoveButtonVisibility
public static AuxiliaryButtonVisibility GetRemoveButtonVisibility(ListBoxItem listBoxItem)
{
@@ -112,6 +127,21 @@ public static void SetHoverBorderBrush(ListBoxItem listBoxItem, Brush value)
VisualStateHelper.HoverBorderBrushProperty.AddOwner(typeof(ListBoxItemHelper));
#endregion
+ #region HoverShadowColor
+ public static Color? GetHoverShadowColor(ListBoxItem listBoxItem)
+ {
+ return (Color?)listBoxItem.GetValue(HoverShadowColorProperty);
+ }
+
+ public static void SetHoverShadowColor(ListBoxItem listBoxItem, Color? value)
+ {
+ listBoxItem.SetValue(HoverShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty HoverShadowColorProperty =
+ VisualStateHelper.HoverShadowColorProperty.AddOwner(typeof(ListBoxItemHelper));
+ #endregion
+
#region SelectedBackground
public static Brush GetSelectedBackground(ListBoxItem listBoxItem)
{
@@ -157,6 +187,21 @@ public static void SetSelectedBorderBrush(ListBoxItem listBoxItem, Brush value)
DependencyProperty.RegisterAttached("SelectedBorderBrush", typeof(Brush), typeof(ListBoxItemHelper));
#endregion
+ #region SelectedShadowColor
+ public static Color? GetSelectedShadowColor(ListBoxItem listBoxItem)
+ {
+ return (Color?)listBoxItem.GetValue(SelectedShadowColorProperty);
+ }
+
+ public static void SetSelectedShadowColor(ListBoxItem listBoxItem, Color? value)
+ {
+ listBoxItem.SetValue(SelectedShadowColorProperty, value);
+ }
+
+ public static readonly DependencyProperty SelectedShadowColorProperty =
+ VisualStateHelper.SelectedShadowColorProperty.AddOwner(typeof(ListBoxItemHelper));
+ #endregion
+
#region SelectedBorderThickness
public static Thickness? GetSelectedBorderThickness(ListBoxItem listBoxItem)
{
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuHelper.cs
index db28208b..f093bd72 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuHelper.cs
@@ -341,6 +341,51 @@ public static void SetTopLevelItemsClickBorderBrush(Menu menu, Brush value)
DependencyProperty.RegisterAttached("TopLevelItemsClickBorderBrush", typeof(Brush), typeof(MenuHelper));
#endregion
+ #region TopLevelItemsOpenedBackground
+ public static Brush GetTopLevelItemsOpenedBackground(Menu menu)
+ {
+ return (Brush)menu.GetValue(TopLevelItemsOpenedBackgroundProperty);
+ }
+
+ public static void SetTopLevelItemsOpenedBackground(Menu menu, Brush value)
+ {
+ menu.SetValue(TopLevelItemsOpenedBackgroundProperty, value);
+ }
+
+ public static readonly DependencyProperty TopLevelItemsOpenedBackgroundProperty =
+ DependencyProperty.RegisterAttached("TopLevelItemsOpenedBackground", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
+ #region TopLevelItemsOpenedForeground
+ public static Brush GetTopLevelItemsOpenedForeground(Menu menu)
+ {
+ return (Brush)menu.GetValue(TopLevelItemsOpenedForegroundProperty);
+ }
+
+ public static void SetTopLevelItemsOpenedForeground(Menu menu, Brush value)
+ {
+ menu.SetValue(TopLevelItemsOpenedForegroundProperty, value);
+ }
+
+ public static readonly DependencyProperty TopLevelItemsOpenedForegroundProperty =
+ DependencyProperty.RegisterAttached("TopLevelItemsOpenedForeground", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
+ #region TopLevelItemsOpenedBorderBrush
+ public static Brush GetTopLevelItemsOpenedBorderBrush(Menu menu)
+ {
+ return (Brush)menu.GetValue(TopLevelItemsOpenedBorderBrushProperty);
+ }
+
+ public static void SetTopLevelItemsOpenedBorderBrush(Menu menu, Brush value)
+ {
+ menu.SetValue(TopLevelItemsOpenedBorderBrushProperty, value);
+ }
+
+ public static readonly DependencyProperty TopLevelItemsOpenedBorderBrushProperty =
+ DependencyProperty.RegisterAttached("TopLevelItemsOpenedBorderBrush", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
#region TopLevelItemsCheckedBackground
public static Brush GetTopLevelItemsCheckedBackground(Menu menu)
{
@@ -708,6 +753,51 @@ public static void SetSubmenuItemsClickBorderBrush(Menu menu, Brush value)
DependencyProperty.RegisterAttached("SubmenuItemsClickBorderBrush", typeof(Brush), typeof(MenuHelper));
#endregion
+ #region SubmenuItemsOpenedBackground
+ public static Brush GetSubmenuItemsOpenedBackground(Menu menu)
+ {
+ return (Brush)menu.GetValue(SubmenuItemsOpenedBackgroundProperty);
+ }
+
+ public static void SetSubmenuItemsOpenedBackground(Menu menu, Brush value)
+ {
+ menu.SetValue(SubmenuItemsOpenedBackgroundProperty, value);
+ }
+
+ public static readonly DependencyProperty SubmenuItemsOpenedBackgroundProperty =
+ DependencyProperty.RegisterAttached("SubmenuItemsOpenedBackground", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
+ #region SubmenuItemsOpenedForeground
+ public static Brush GetSubmenuItemsOpenedForeground(Menu menu)
+ {
+ return (Brush)menu.GetValue(SubmenuItemsOpenedForegroundProperty);
+ }
+
+ public static void SetSubmenuItemsOpenedForeground(Menu menu, Brush value)
+ {
+ menu.SetValue(SubmenuItemsOpenedForegroundProperty, value);
+ }
+
+ public static readonly DependencyProperty SubmenuItemsOpenedForegroundProperty =
+ DependencyProperty.RegisterAttached("SubmenuItemsOpenedForeground", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
+ #region SubmenuItemsOpenedBorderBrush
+ public static Brush GetSubmenuItemsOpenedBorderBrush(Menu menu)
+ {
+ return (Brush)menu.GetValue(SubmenuItemsOpenedBorderBrushProperty);
+ }
+
+ public static void SetSubmenuItemsOpenedBorderBrush(Menu menu, Brush value)
+ {
+ menu.SetValue(SubmenuItemsOpenedBorderBrushProperty, value);
+ }
+
+ public static readonly DependencyProperty SubmenuItemsOpenedBorderBrushProperty =
+ DependencyProperty.RegisterAttached("SubmenuItemsOpenedBorderBrush", typeof(Brush), typeof(MenuHelper));
+ #endregion
+
#region SubmenuItemsCheckedBackground
public static Brush GetSubmenuItemsCheckedBackground(Menu menu)
{
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuItemHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuItemHelper.cs
index cad55e3e..c970d563 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuItemHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/MenuItemHelper.cs
@@ -127,6 +127,51 @@ public static void SetClickBorderBrush(MenuItem menuItem, Brush value)
DependencyProperty.RegisterAttached("ClickBorderBrush", typeof(Brush), typeof(MenuItemHelper));
#endregion
+ #region OpenedBackground
+ public static Brush GetOpenedBackground(MenuItem menuItem)
+ {
+ return (Brush)menuItem.GetValue(OpenedBackgroundProperty);
+ }
+
+ public static void SetOpenedBackground(MenuItem menuItem, Brush value)
+ {
+ menuItem.SetValue(OpenedBackgroundProperty, value);
+ }
+
+ public static readonly DependencyProperty OpenedBackgroundProperty =
+ DependencyProperty.RegisterAttached("OpenedBackground", typeof(Brush), typeof(MenuItemHelper));
+ #endregion
+
+ #region OpenedForeground
+ public static Brush GetOpenedForeground(MenuItem menuItem)
+ {
+ return (Brush)menuItem.GetValue(OpenedForegroundProperty);
+ }
+
+ public static void SetOpenedForeground(MenuItem menuItem, Brush value)
+ {
+ menuItem.SetValue(OpenedForegroundProperty, value);
+ }
+
+ public static readonly DependencyProperty OpenedForegroundProperty =
+ DependencyProperty.RegisterAttached("OpenedForeground", typeof(Brush), typeof(MenuItemHelper));
+ #endregion
+
+ #region OpenedBorderBrush
+ public static Brush GetOpenedBorderBrush(MenuItem menuItem)
+ {
+ return (Brush)menuItem.GetValue(OpenedBorderBrushProperty);
+ }
+
+ public static void SetOpenedBorderBrush(MenuItem menuItem, Brush value)
+ {
+ menuItem.SetValue(OpenedBorderBrushProperty, value);
+ }
+
+ public static readonly DependencyProperty OpenedBorderBrushProperty =
+ DependencyProperty.RegisterAttached("OpenedBorderBrush", typeof(Brush), typeof(MenuItemHelper));
+ #endregion
+
#region CheckedBackground
public static Brush GetCheckedBackground(MenuItem menuItem)
{
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/PasswordBoxHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/PasswordBoxHelper.cs
index 58efd3a6..3a2c85f3 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/PasswordBoxHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/PasswordBoxHelper.cs
@@ -57,18 +57,18 @@ public static void SetIcon(PasswordBox passwordBox, object value)
#endregion
#region Watermark
- public static string GetWatermark(PasswordBox passwordBox)
+ public static object GetWatermark(PasswordBox passwordBox)
{
- return (string)passwordBox.GetValue(WatermarkProperty);
+ return (object)passwordBox.GetValue(WatermarkProperty);
}
- public static void SetWatermark(PasswordBox passwordBox, string value)
+ public static void SetWatermark(PasswordBox passwordBox, object value)
{
passwordBox.SetValue(WatermarkProperty, value);
}
public static readonly DependencyProperty WatermarkProperty =
- DependencyProperty.RegisterAttached("Watermark", typeof(string), typeof(PasswordBoxHelper));
+ DependencyProperty.RegisterAttached("Watermark", typeof(object), typeof(PasswordBoxHelper));
#endregion
#region WatermarkBrush
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/RadioButtonHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/RadioButtonHelper.cs
index bdc3a857..3928cc2d 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/RadioButtonHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/RadioButtonHelper.cs
@@ -232,19 +232,19 @@ public static void SetNullableBackground(RadioButton radioButton, Brush value)
DependencyProperty.RegisterAttached("NullableBackground", typeof(Brush), typeof(RadioButtonHelper));
#endregion
- #region NullableForeround
- public static Brush GetNullableForeround(RadioButton radioButton)
+ #region NullableForeground
+ public static Brush GetNullableForeground(RadioButton radioButton)
{
- return (Brush)radioButton.GetValue(NullableForeroundProperty);
+ return (Brush)radioButton.GetValue(NullableForegroundProperty);
}
- public static void SetNullableForeround(RadioButton radioButton, Brush value)
+ public static void SetNullableForeground(RadioButton radioButton, Brush value)
{
- radioButton.SetValue(NullableForeroundProperty, value);
+ radioButton.SetValue(NullableForegroundProperty, value);
}
- public static readonly DependencyProperty NullableForeroundProperty =
- DependencyProperty.RegisterAttached("NullableForeround", typeof(Brush), typeof(RadioButtonHelper));
+ public static readonly DependencyProperty NullableForegroundProperty =
+ DependencyProperty.RegisterAttached("NullableForeground", typeof(Brush), typeof(RadioButtonHelper));
#endregion
#region NullableBorderBrush
@@ -263,18 +263,18 @@ public static void SetNullableBorderBrush(RadioButton radioButton, Brush value)
#endregion
#region NullableBorderThickness
- public static Thickness GetNullableBorderThickness(RadioButton radioButton)
+ public static Thickness? GetNullableBorderThickness(RadioButton radioButton)
{
- return (Thickness)radioButton.GetValue(NullableBorderThicknessProperty);
+ return (Thickness?)radioButton.GetValue(NullableBorderThicknessProperty);
}
- public static void SetNullableBorderThickness(RadioButton radioButton, Thickness value)
+ public static void SetNullableBorderThickness(RadioButton radioButton, Thickness? value)
{
radioButton.SetValue(NullableBorderThicknessProperty, value);
}
public static readonly DependencyProperty NullableBorderThicknessProperty =
- DependencyProperty.RegisterAttached("NullableBorderThickness", typeof(Thickness), typeof(RadioButtonHelper));
+ DependencyProperty.RegisterAttached("NullableBorderThickness", typeof(Thickness?), typeof(RadioButtonHelper));
#endregion
#region NullableToggleBrush
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ScrollViewerHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ScrollViewerHelper.cs
index 57162b60..876b480a 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ScrollViewerHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/ScrollViewerHelper.cs
@@ -73,6 +73,21 @@ public static void SetHandleMouseWheel(DependencyObject obj, bool value)
DependencyProperty.RegisterAttached("HandleMouseWheel", typeof(bool), typeof(ScrollViewerHelper), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.Inherits));
#endregion
+ #region ContentSpacing
+ public static double GetContentSpacing(DependencyObject obj)
+ {
+ return (double)obj.GetValue(ContentSpacingProperty);
+ }
+
+ public static void SetContentSpacing(DependencyObject obj, double value)
+ {
+ obj.SetValue(ContentSpacingProperty, value);
+ }
+
+ public static readonly DependencyProperty ContentSpacingProperty =
+ DependencyProperty.RegisterAttached("ContentSpacing", typeof(double), typeof(ScrollViewerHelper), new FrameworkPropertyMetadata(0d, FrameworkPropertyMetadataOptions.Inherits));
+ #endregion
+
#endregion
#region Internal Properties
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabControlHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabControlHelper.cs
index e6fcf1b2..9410a236 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabControlHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabControlHelper.cs
@@ -452,7 +452,7 @@ public static void SetItemsFontSize(TabControl tabControl, double value)
}
public static readonly DependencyProperty ItemsFontSizeProperty =
- DependencyProperty.RegisterAttached("ItemsFontSize", typeof(double), typeof(TabControlHelper));
+ DependencyProperty.RegisterAttached("ItemsFontSize", typeof(double), typeof(TabControlHelper), new PropertyMetadata(12d));
#endregion
#region ItemsCornerRadius
@@ -542,7 +542,7 @@ public static void SetItemsFontFamily(TabControl tabControl, FontFamily value)
}
public static readonly DependencyProperty ItemsFontFamilyProperty =
- DependencyProperty.RegisterAttached("ItemsFontFamily", typeof(FontFamily), typeof(TabControlHelper));
+ DependencyProperty.RegisterAttached("ItemsFontFamily", typeof(FontFamily), typeof(TabControlHelper), new PropertyMetadata(SystemFonts.MessageFontFamily));
#endregion
#region ItemsForeground
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabItemHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabItemHelper.cs
index d3bcaaee..01ebb091 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabItemHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TabItemHelper.cs
@@ -66,8 +66,7 @@ public static void SetFontFamily(TabItem tabItem, FontFamily value)
}
public static readonly DependencyProperty FontFamilyProperty =
- DependencyProperty.RegisterAttached("FontFamily", typeof(FontFamily), typeof(TabItemHelper));
-
+ DependencyProperty.RegisterAttached("FontFamily", typeof(FontFamily), typeof(TabItemHelper), new PropertyMetadata(SystemFonts.MessageFontFamily));
#endregion
#region Foreground
@@ -98,7 +97,7 @@ public static void SetFontSize(TabItem tabItem, double value)
}
public static readonly DependencyProperty FontSizeProperty =
- DependencyProperty.RegisterAttached("FontSize", typeof(double), typeof(TabItemHelper));
+ DependencyProperty.RegisterAttached("FontSize", typeof(double), typeof(TabItemHelper), new PropertyMetadata(12d));
#endregion
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TextBoxHelper.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TextBoxHelper.cs
index 373bed2c..2083014a 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TextBoxHelper.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Helpers/TextBoxHelper.cs
@@ -27,18 +27,18 @@ public static void SetIcon(TextBox textBox, object value)
#endregion
#region Watermark
- public static string GetWatermark(TextBox textBox)
+ public static object GetWatermark(TextBox textBox)
{
- return (string)textBox.GetValue(WatermarkProperty);
+ return (object)textBox.GetValue(WatermarkProperty);
}
- public static void SetWatermark(TextBox textBox, string value)
+ public static void SetWatermark(TextBox textBox, object value)
{
textBox.SetValue(WatermarkProperty, value);
}
public static readonly DependencyProperty WatermarkProperty =
- DependencyProperty.RegisterAttached("Watermark", typeof(string), typeof(TextBoxHelper));
+ DependencyProperty.RegisterAttached("Watermark", typeof(object), typeof(TextBoxHelper));
#endregion
#region WatermarkBrush
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Panuon.UI.Silver.projitems b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Panuon.UI.Silver.projitems
index eeadf910..a7f36bd4 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Panuon.UI.Silver.projitems
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Panuon.UI.Silver.projitems
@@ -33,6 +33,8 @@
+
+
@@ -129,6 +131,7 @@
+
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Properties/AssemblyInfo.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Properties/AssemblyInfo.cs
index 6ecfa459..0d95477c 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Properties/AssemblyInfo.cs
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Properties/AssemblyInfo.cs
@@ -49,5 +49,5 @@
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.2.15.1")]
-[assembly: AssemblyFileVersion("2.2.15.1")]
+[assembly: AssemblyVersion("2.2.16")]
+[assembly: AssemblyFileVersion("2.2.16")]
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Resources/ComponentKeys.cs b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Resources/ComponentKeys.cs
new file mode 100644
index 00000000..dba1bb1c
--- /dev/null
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Resources/ComponentKeys.cs
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Panuon.UI.Silver.Resources
+{
+ public static class ComponentKeys
+ {
+ public const string ButtonHelperPendingSpinnerStyle = nameof(ButtonHelperPendingSpinnerStyle);
+ public const string ColorPickerClearButtonStyle = nameof(ColorPickerClearButtonStyle);
+ public const string ColorPickerToggleArrowTransformControlStyle = nameof(ColorPickerToggleArrowTransformControlStyle);
+ public const string ColorPickerColorSelectorStyle = nameof(ColorPickerColorSelectorStyle);
+ public const string ColorSelectorDropperThumbStyle = nameof(ColorSelectorDropperThumbStyle);
+ public const string ColorSelectorInputTextBoxStyle = nameof(ColorSelectorInputTextBoxStyle);
+ public const string ColorSelectorSliderStyle = nameof(ColorSelectorSliderStyle);
+ public const string ColorSelectorThumbFenceStyle = nameof(ColorSelectorThumbFenceStyle);
+ public const string ComboBoxHelperClearButtonStyle = nameof(ComboBoxHelperClearButtonStyle);
+ public const string ComboBoxHelperRemoveButtonStyle = nameof(ComboBoxHelperRemoveButtonStyle);
+ public const string ComboBoxHelperToggleArrowTransformControlStyle = nameof(ComboBoxHelperToggleArrowTransformControlStyle);
+ public const string ComboBoxHelperSearchTextBoxStyle = nameof(ComboBoxHelperSearchTextBoxStyle);
+ public const string ContextMenuHelperMenuItemStyle = nameof(ContextMenuHelperMenuItemStyle);
+ public const string DataGridHelperSelectAllButtonStyle = nameof(DataGridHelperSelectAllButtonStyle);
+ public const string DataGridHelperSortArrowTransformControlStyle = nameof(DataGridHelperSortArrowTransformControlStyle);
+ public const string DataGridHelperAutoGeneratedTextBoxStyle = nameof(DataGridHelperAutoGeneratedTextBoxStyle);
+ public const string DataGridHelperAutoGeneratedComboBoxStyle = nameof(DataGridHelperAutoGeneratedComboBoxStyle);
+ public const string DataGridHelperAutoGeneratedCheckBoxStyle = nameof(DataGridHelperAutoGeneratedCheckBoxStyle);
+ public const string ExpanderHelperToggleArrowTransformControlStyle = nameof(ExpanderHelperToggleArrowTransformControlStyle);
+ public const string ListBoxHelperRemoveButtonStyle = nameof(ListBoxHelperRemoveButtonStyle);
+ public const string MessageBoxXWindowXStyle = nameof(MessageBoxXWindowXStyle);
+ public const string MessageBoxXButtonStyle = nameof(MessageBoxXButtonStyle);
+ public const string NoticeBoxNoticeBoxItemStyle = nameof(NoticeBoxNoticeBoxItemStyle);
+ public const string PaginationTurnPageButtonStyle = nameof(PaginationTurnPageButtonStyle);
+ public const string PaginationPaginationItemStyle = nameof(PaginationPaginationItemStyle);
+ public const string PaginationOmittingTextBlockStyle = nameof(PaginationOmittingTextBlockStyle);
+ public const string PasswordBoxHelperClearButtonStyle = nameof(PasswordBoxHelperClearButtonStyle);
+ public const string PasswordBoxHelperPlainButtonStyle = nameof(PasswordBoxHelperPlainButtonStyle);
+ public const string PendingBoxCancelButtonStyle = nameof(PendingBoxCancelButtonStyle);
+ public const string PendingBoxSpinnerStyle = nameof(PendingBoxSpinnerStyle);
+ public const string PendingBoxWindowStyle = nameof(PendingBoxWindowStyle);
+ public const string RepeatButtonHelperPendingSpinnerStyle = nameof(RepeatButtonHelperPendingSpinnerStyle);
+ public const string ScrollBarHelperScrollButtonStyle = nameof(ScrollBarHelperScrollButtonStyle);
+ public const string SliderHelperThumbStyle = nameof(SliderHelperThumbStyle);
+ public const string TabControlHelperRemoveButtonStyle = nameof(TabControlHelperRemoveButtonStyle);
+ public const string TextBoxHelperClearButtonStyle = nameof(TextBoxHelperClearButtonStyle);
+ public const string ThumbFenceThumbStyle = nameof(ThumbFenceThumbStyle);
+ public const string ToggleButtonHelperPendingSpinnerStyle = nameof(ToggleButtonHelperPendingSpinnerStyle);
+ public const string TreeViewHelperToggleArrowToggleButtonStyle = nameof(TreeViewHelperToggleArrowToggleButtonStyle);
+ public const string WindowXCaptionMinimizeButtonStyle = nameof(WindowXCaptionMinimizeButtonStyle);
+ public const string WindowXCaptionMaximizeButtonStyle = nameof(WindowXCaptionMaximizeButtonStyle);
+ public const string WindowXCaptionCloseButtonStyle = nameof(WindowXCaptionCloseButtonStyle);
+ public const string WindowXModalButtonStyle = nameof(WindowXModalButtonStyle);
+ }
+}
diff --git a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Themes/Generic.Core.xaml b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Themes/Generic.Core.xaml
index 08a8253a..ba4e4595 100644
--- a/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Themes/Generic.Core.xaml
+++ b/DotNet/WPF/Src/SharedResources/Panuon.UI.Silver/Themes/Generic.Core.xaml
@@ -7,8 +7,6 @@
xmlns:irs="clr-namespace:Panuon.UI.Silver.Internal.Resources">
-
-