This commit is contained in:
NaBian committed 2021-06-20 16:45:42 +08:00
1 parent 9bcb2bb110
commit e44e117bb3
3 files changed
+113 -100

No files matched your search

@@ -85,14 +85,22 @@ namespace HandyControl.Tools
/// get HandyControl theme
/// </summary>
/// <returns></returns>
public static ResourceDictionary GetTheme()
public static ResourceDictionary GetTheme(bool standalone = false)
{
HcTheme ??= new ResourceDictionary
if (!standalone)
{
HcTheme ??= new ResourceDictionary
{
Source = new Uri("pack://application:,,,/HandyControl;component/Themes/Theme.xaml")
};
return HcTheme;
}
return new ResourceDictionary
{
Source = new Uri("pack://application:,,,/HandyControl;component/Themes/Theme.xaml")
};
return HcTheme;
}
}
}