Files
ShrlAlgoToolkit/WPFluent/Markup/ControlsDictionary.cs

32 lines
1.3 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Windows.Markup;
namespace WPFluent.Markup;
/// <summary>
/// Provides a dictionary implementation that contains <c>WPF UI</c> controls resources used by components and other
/// elements of a WPF application.
/// </summary>
/// <example>
/// <code lang="xml"> /// &lt;Application /// xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"&gt; ///
/// &lt;Application.Resources&gt; /// &lt;ResourceDictionary&gt; ///
/// &lt;ResourceDictionary.MergedDictionaries&gt; /// &lt;ui:ControlsDictionary /&gt; ///
/// &lt;/ResourceDictionary.MergedDictionaries&gt; /// &lt;/ResourceDictionary&gt; ///
/// &lt;/Application.Resources&gt; /// &lt;/Application&gt; ///</code>
/// </example>
[Localizability(LocalizationCategory.Ignore)]
[Ambient]
[UsableDuringInitialization(true)]
public class ControlsDictionary : ResourceDictionary
{
private const string DictionaryUri = "pack://application:,,,/WPFluent;component/Resources/Styles.xaml";
/// <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); }
}