Files
Shrlalgo.RvKits/WPFluent/Controls/CodeBlock/SyntaxHighlightDictionary.cs
ShrlAlgo 4d35cadb56 更新
2025-07-11 09:20:23 +08:00

22 lines
860 B
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.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 =
"pack://application:,,,/WPFluent;component/Controls/CodeBlock/SyntaxHighlight.xaml";
/// <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);
}