theme switch
This commit is contained in:
1 parent
f835f25165
commit
c3e4988c85
8 files changed
+13077
-13148
No files matched your search
@@ -14,7 +14,7 @@
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDark.xaml"/>
|
||||
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
|
||||
<ResourceDictionary Source="Resources/Themes/SkinDefault.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
|
||||
@@ -9,7 +9,6 @@ using System.Runtime;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using HandyControl.Data;
|
||||
using HandyControl.Themes;
|
||||
using HandyControl.Tools;
|
||||
using HandyControlDemo.Data;
|
||||
using HandyControlDemo.Tools;
|
||||
@@ -91,7 +90,6 @@ namespace HandyControlDemo
|
||||
|
||||
internal void UpdateSkin(SkinType skin)
|
||||
{
|
||||
SharedResourceDictionary.SharedDictionaries.Clear();
|
||||
var skins0 = Resources.MergedDictionaries[0];
|
||||
skins0.MergedDictionaries.Clear();
|
||||
skins0.MergedDictionaries.Add(ResourceHelper.GetSkin(skin));
|
||||
|
||||
Reference in new issue
Block a user