// ReSharper disable once CheckNamespace namespace WPFluent.Controls; /// /// Extended with properties. /// public partial class TreeViewItem : System.Windows.Controls.TreeViewItem { /// /// Identifies the dependency property. /// public static readonly DependencyProperty IconProperty = DependencyProperty.Register( nameof(Icon), typeof(IconElement), typeof(TreeViewItem), new PropertyMetadata(null)); /// /// Gets or sets displayed . /// [Bindable(true)] [Category("Appearance")] public IconElement? Icon { get => (IconElement?)GetValue(IconProperty); set => SetValue(IconProperty, value); } }