20 lines
621 B
C#
20 lines
621 B
C#
using System;
|
|
using System.Windows;
|
|
using HandyControl.Data;
|
|
using HandyControl.Themes;
|
|
using HandyControl.Tools;
|
|
|
|
namespace HandyControlDemo.Resources
|
|
{
|
|
public class DemoTheme : Theme
|
|
{
|
|
public override ResourceDictionary GetSkin(SkinType skinType) =>
|
|
ResourceHelper.GetSkin(typeof(App).Assembly, "Resources/Themes", skinType);
|
|
|
|
public override ResourceDictionary GetTheme() => new Lazy<ResourceDictionary>(() => new ResourceDictionary
|
|
{
|
|
Source = new Uri("pack://application:,,,/HandyControlDemo;component/Resources/Themes/Theme.xaml")
|
|
}).Value;
|
|
}
|
|
}
|