2025-07-11 09:20:23 +08:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Markup;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WPFDark;
|
|
|
|
|
|
[Localizability(LocalizationCategory.Ignore)]
|
|
|
|
|
|
[Ambient]
|
|
|
|
|
|
[UsableDuringInitialization(true)]
|
|
|
|
|
|
public class ControlsDictionary : ResourceDictionary
|
|
|
|
|
|
{
|
2025-07-12 23:31:32 +08:00
|
|
|
|
private string DictionaryUri => $"pack://application:,,,/{Assembly.GetExecutingAssembly().GetName().Name};component/Resources/Styles.xaml";
|
2025-07-11 09:20:23 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="ControlsDictionary"/> class. Default constructor defining <see
|
|
|
|
|
|
/// cref="ResourceDictionary.Source"/> of the <c>WPF UI</c> controls dictionary.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ControlsDictionary() { Source = new Uri(DictionaryUri, UriKind.Absolute); }
|
|
|
|
|
|
}
|