优化更新代码,添加界面功能并整合
This commit is contained in:
31
WPFluent/Markup/ControlsDictionary.cs
Normal file
31
WPFluent/Markup/ControlsDictionary.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
|
||||
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"> /// <Application /// xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"> ///
|
||||
/// <Application.Resources> /// <ResourceDictionary> ///
|
||||
/// <ResourceDictionary.MergedDictionaries> /// <ui:ControlsDictionary /> ///
|
||||
/// </ResourceDictionary.MergedDictionaries> /// </ResourceDictionary> ///
|
||||
/// </Application.Resources> /// </Application> ///</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); }
|
||||
}
|
||||
Reference in New Issue
Block a user