Files
ShrlAlgoToolkit/WPFluent/Controls/CodeBlock/SyntaxHighlightDictionary.cs

22 lines
860 B
C#
Raw Normal View History

2025-07-11 09:20:23 +08:00
using System.Windows.Markup;
2025-04-24 20:56:44 +08:00
namespace WPFluent.Controls;
/// <summary>
/// Provides a dictionary implementation that contains <c>WPF UI</c> controls resources used by components and other elements of a WPF application.
/// </summary>
[Localizability(LocalizationCategory.Ignore)]
[Ambient]
[UsableDuringInitialization(true)]
public class SyntaxHighlightDictionary : ResourceDictionary
{
private const string DictionaryUri =
2025-05-05 17:04:06 +08:00
"pack://application:,,,/WPFluent;component/Controls/CodeBlock/SyntaxHighlight.xaml";
2025-04-24 20:56:44 +08:00
/// <summary>
/// Initializes a new instance of the <see cref="SyntaxHighlightDictionary"/> class.
/// It sets the <see cref="ResourceDictionary.Source"/> of the <c>WPF UI</c> syntax highlight dictionary.
/// </summary>
public SyntaxHighlightDictionary() => Source = new Uri(DictionaryUri, UriKind.Absolute);
}