Files
Shrlalgo.RvKits/WPFluent/Controls/CodeBlock/SyntaxHighlightDictionary.cs

29 lines
1.1 KiB
C#
Raw Normal View History

2025-04-24 20:56:44 +08:00
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using System;
using System.Windows;
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/SyntaxHighlight/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);
}