// Based on Windows UI Library // Copyright(c) Microsoft Corporation.All rights reserved. // // https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationviewitemheader?view=winrt-22621 // ReSharper disable once CheckNamespace namespace WPFluent.Controls; /// /// Represents a header for a group of menu items in a NavigationMenu. /// public class NavigationViewItemHeader : System.Windows.Controls.Control { /// /// Identifies the dependency property. /// public static readonly DependencyProperty IconProperty = DependencyProperty.Register( nameof(Icon), typeof(IconElement), typeof(NavigationViewItemHeader), new PropertyMetadata(null)); /// /// Identifies the dependency property. /// public static readonly DependencyProperty TextProperty = DependencyProperty.Register( nameof(Text), typeof(string), typeof(NavigationViewItemHeader), new PropertyMetadata(string.Empty)); /// /// Gets or sets the icon. /// [Bindable(true)] [Category("Appearance")] public IconElement? Icon { get => (IconElement?)GetValue(IconProperty); set => SetValue(IconProperty, value); } /// /// Gets or sets the text presented in the header element. /// [Bindable(true)] public string Text { get => (string)GetValue(TextProperty); set => SetValue(TextProperty, value); } }