fixed #632
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user