menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewAdv - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeViewAdv

    Represents a control that displays hierarchical data in a tree structure that has items that can expand and collapse.

    Inheritance
    System.Object
    TreeViewAdv
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2010BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2010BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2010SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2013, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/Office2013Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/BlendStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/SyncOrangeStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/ShinyRedStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/ShinyBlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF;component/Controls/TreeViewAdv/Themes/generic.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(TreeViewAdv), XamlResource = "/Syncfusion.Tools.WPF.Classic;component/Controls/TreeViewAdv/Themes/TransparentStyle.xaml")]
    [Obsolete("This control is obsolete. Use new SfTreeView in Syncfusion.SfTreeView.WPF assembly instead.")]
    public class TreeViewAdv : ItemsControl, IItemsPanelRef, IItemContainer, IDisposable
    Remarks

    Content Model: TreeViewAdv is an System.Windows.Controls.ItemsControl and has two content properties: System.Windows.Controls.ItemsControl.Items and System.Windows.Controls.ItemsControl.ItemsSourceProperty.

    The contents of a TreeViewAdv are TreeViewItemAdv controls that can contain rich content, such as System.Windows.Controls.Button and System.Windows.Controls.Image controls. A TreeViewItemAdv can contain one or more TreeViewItemAdv objects as its descendants. A TreeViewAdv is defined as a hierarchy of TreeViewItemAdv objects.

    To create a TreeViewAdv using C# you can use the TreeViewAdv method.

    A TreeViewAdv supports Windows themes (Default, Silver, Metallic, Zune, Royale and Aero) and skins (Office2003, Office2007Blue, Office2007Black, Office2007Silver, Office2013 and Blend).

    A TreeViewAdv supports multiple selection. SelectedItems property contains the list of all selected items.

    Examples

    This example shows how to create a TreeViewAdv in XAML.

    <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <Grid>
    <local:TreeViewAdv>
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </Grid>
    </Window>

    Constructors

    TreeViewAdv()

    Initializes a new instance of the TreeViewAdv class.

    Declaration
    public TreeViewAdv()

    Fields

    AfterItemSortEvent

    Identified by the AfterItemSort routed_event.

    Declaration
    public static readonly RoutedEvent AfterItemSortEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    AllowDragDropProperty

    Identifies TreeViewAdv. AllowDragDrop dependency property.

    Declaration
    public static readonly DependencyProperty AllowDragDropProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    AllowDynamicResizingProperty

    Declaration
    public static readonly DependencyProperty AllowDynamicResizingProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    AllowMultiSelectProperty

    Identifies TreeViewAdv. AllowMultiSelect dependency property.

    Declaration
    public static readonly DependencyProperty AllowMultiSelectProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    AllowsColumnReorderProperty

    Identifies TreeViewAdv. AllowDragDrop dependency property.

    Declaration
    public static readonly DependencyProperty AllowsColumnReorderProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    AnimationSpeedProperty

    Identifies the AnimationSpeed dependency property.

    Declaration
    public static readonly DependencyProperty AnimationSpeedProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    AnimationTypeProperty

    Identifies TreeViewItemAdv. AnimationType dependency property.

    Declaration
    public static readonly DependencyProperty AnimationTypeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    BeforeItemSortEvent

    Identified by the BeforeItemSort routed_event.

    Declaration
    public static readonly RoutedEvent BeforeItemSortEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    CollapsedEvent

    Identified by the Collapsed routed_event.

    Declaration
    public static readonly RoutedEvent CollapsedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    CollapsingEvent

    Identified by the Collapsing routed_event.

    Declaration
    public static readonly RoutedEvent CollapsingEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    ColumnsProperty

    Identifies TreeViewAdv. Columns dependency property.

    Declaration
    public static readonly DependencyProperty ColumnsProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    CornerRadiusProperty

    Identifies the CornerRadius dependency property.

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragAdornerWidthProperty

    Identifies TreeViewAdv. DragAdornerWidth dependency property of the TreeViewAdv.

    Declaration
    public static readonly DependencyProperty DragAdornerWidthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragCompletedEvent

    Declaration
    public static readonly RoutedEvent DragCompletedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    DragDropControllerProperty

    Declaration
    public static readonly DependencyProperty DragDropControllerProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragDropEffectProperty

    Identifies TreeViewAdv. DragDropEffect dependency property of the TreeViewAdv.

    Declaration
    public static readonly DependencyProperty DragDropEffectProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragEndEvent

    Identifies TreeViewAdv DragEnd event.

    Declaration
    public static readonly RoutedEvent DragEndEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    DraggingContainerOpacityProperty

    Declaration
    public static readonly DependencyProperty DraggingContainerOpacityProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DraggingContainerProperty

    Identifies the DraggingItemContainerStyle dependency property.

    Declaration
    public static readonly DependencyProperty DraggingContainerProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragIndicatorStyleProperty

    Identifies TreeViewAdv. DragIndicatorStyle dependency property.

    Declaration
    public static readonly DependencyProperty DragIndicatorStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragModeProperty

    Declaration
    public static readonly DependencyProperty DragModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragOverEvent

    Identifies TreeViewAdv DragOver event.

    Declaration
    public static readonly RoutedEvent DragOverEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    DragOverExpandDelayProperty

    Declaration
    public static readonly DependencyProperty DragOverExpandDelayProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    DragStartEvent

    Identifies TreeViewAdv DragStart event.

    Declaration
    public static readonly RoutedEvent DragStartEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    EditedItemTemplateProperty

    Identifies TreeViewItemAdv. EditedItemTemplate dependency property.

    Declaration
    public static readonly DependencyProperty EditedItemTemplateProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EditedItemTemplateSelectorProperty

    Identifies TreeViewItemAdv. EditedItemTemplateSelector dependency property.

    Declaration
    public static readonly DependencyProperty EditedItemTemplateSelectorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EnableContentWidthProperty

    Declaration
    public static readonly DependencyProperty EnableContentWidthProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EnabledRecursiveSortingProperty

    Identifies TreeViewAdv. EnabledRecursiveSortingProperty dependency property.

    Declaration
    public static readonly DependencyProperty EnabledRecursiveSortingProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ExpandedEvent

    Identified by the Expanded routed_event.

    Declaration
    public static readonly RoutedEvent ExpandedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    ExpanderStyleProperty

    Identifies TreeViewAdv. ExpanderStyle dependency property.

    Declaration
    public static readonly DependencyProperty ExpanderStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ExpandingEvent

    Identified by the Expanding routed_event.

    Declaration
    public static readonly RoutedEvent ExpandingEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    FakeItemForegroundProperty

    Identifies FakeItemForeground dependency property.

    Declaration
    public static readonly DependencyProperty FakeItemForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FakeItemTemplateProperty

    Declaration
    public static readonly DependencyProperty FakeItemTemplateProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    FakeItemTemplateSelectorProperty

    Declaration
    public static readonly DependencyProperty FakeItemTemplateSelectorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    firsttime

    Check whether is first time or not.

    Declaration
    public bool firsttime
    Field Value
    Type
    System.Boolean

    IsColumnHeaderAutoWidthEnabledProperty

    Identifies TreeViewAdv. IsColumnHeaderAutoWidthEnabled dependency property.

    Declaration
    public static readonly DependencyProperty IsColumnHeaderAutoWidthEnabledProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    isdoubleclick

    to determine whether treeviewadv expand by doubleclick

    Declaration
    protected bool isdoubleclick
    Field Value
    Type
    System.Boolean

    IsExpandOnDropProperty

    Identifies TreeViewAdv. IsExpandOnDrop dependency property.

    Declaration
    public static readonly DependencyProperty IsExpandOnDropProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsFakeDragIndicatorProperty

    Identifies TreeViewAdv. IsFakeDragIndicator dependency property.

    Declaration
    public static readonly DependencyProperty IsFakeDragIndicatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsImageSourceFreezeProperty

    Declaration
    public static readonly DependencyProperty IsImageSourceFreezeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsScrollOnExpandProperty

    Identifies TreeViewAdv. IsScrollOnExpand dependency property of the TreeViewAdv.

    Declaration
    public static readonly DependencyProperty IsScrollOnExpandProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsSelectOnRightMouseClickProperty

    Identifies TreeViewAdv. IsSelectOnRightMouseClickProperty dependency property.

    Declaration
    public static readonly DependencyProperty IsSelectOnRightMouseClickProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    IsVirtualizingProperty

    Identifies TreeViewAdv. IsVirtualizing dependency property.

    Declaration
    public static readonly DependencyProperty IsVirtualizingProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ItemGeneratedEvent

    Identifies the ItemGenerated routed_event.

    Declaration
    public static readonly RoutedEvent ItemGeneratedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    ItemsSizeProperty

    Identifies TreeViewItemAdv. ItemsSize dependency property.

    Declaration
    public static readonly DependencyProperty ItemsSizeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    LineBrushProperty

    Identifies TreeViewAdv. LineBrush dependency property.

    Declaration
    public static readonly DependencyProperty LineBrushProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    LinePenProperty

    Identifies TreeViewAdv. LinePen dependency property.

    Declaration
    public static readonly DependencyProperty LinePenProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    LineStrokeDashArrayProperty

    Identifies TreeViewAdv. LinePen dependency property.

    Declaration
    public static readonly DependencyProperty LineStrokeDashArrayProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    LineStrokeDashOffsetProperty

    Identifies TreeViewAdv. LinePen dependency property.

    Declaration
    public static readonly DependencyProperty LineStrokeDashOffsetProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    LineStrokeThicknessProperty

    Identifies TreeViewAdv. LineStrokeThickness dependency property.

    Declaration
    public static readonly DependencyProperty LineStrokeThicknessProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MouseOverBackgroundProperty

    Identifies the MouseOverBackground dependency property.

    Declaration
    public static readonly DependencyProperty MouseOverBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MouseOverBorderBrushProperty

    Identifies the MouseOverBorderBrush dependency property.

    Declaration
    public static readonly DependencyProperty MouseOverBorderBrushProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MouseOverForegroundProperty

    Identifies the MouseOverForeground dependency property.

    Declaration
    public static readonly DependencyProperty MouseOverForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    MultiColumnEnableProperty

    Identifies TreeViewAdv. MultiColumnEnable dependency property.

    Declaration
    public static readonly DependencyProperty MultiColumnEnableProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    PathSeparatorProperty

    Identifies TreeViewAdv. PathSeparator dependency property.

    Declaration
    public static readonly DependencyProperty PathSeparatorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    PreviewSelectedItemChangedEvent

    Identifies the PreviewSelectedItemChanged routed event.

    Declaration
    public static readonly RoutedEvent PreviewSelectedItemChangedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    SelectedBackgroundProperty

    Identifies the SelectedBackground dependency property.

    Declaration
    public static readonly DependencyProperty SelectedBackgroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedBorderBrushProperty

    Identifies the SelectedBorderBrush dependency property.

    Declaration
    public static readonly DependencyProperty SelectedBorderBrushProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedForegroundProperty

    Identifies the SelectedForeground dependency property.

    Declaration
    public static readonly DependencyProperty SelectedForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedItemChangedEvent

    Identifies the SelectedItemChanged routed event.

    Declaration
    public static readonly RoutedEvent SelectedItemChangedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    SelectedItemProperty

    Identifies TreeViewAdv.SelectedItemPropertyKey dependency property.

    Declaration
    public static readonly DependencyProperty SelectedItemProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedItemPropertyKey

    Identifies TreeViewAdv. SelectedItem dependency property.

    Declaration
    public static readonly DependencyPropertyKey SelectedItemPropertyKey
    Field Value
    Type
    System.Windows.DependencyPropertyKey

    SelectedItemsProperty

    identifies TreeViewAdv.SelectedItems dependency property.

    Declaration
    public static readonly DependencyProperty SelectedItemsProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedItemsPropertyKey

    Identifies TreeViewAdv. SelectedItems dependency property.

    Declaration
    public static readonly DependencyPropertyKey SelectedItemsPropertyKey
    Field Value
    Type
    System.Windows.DependencyPropertyKey

    SelectedPathProperty

    Setting the key for the TreeViewAdv.SelectedPathProperty

    Declaration
    public static readonly DependencyProperty SelectedPathProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedPathPropertyKey

    Identifies TreeViewAdv. SelectedPath dependency property.

    Declaration
    public static readonly DependencyPropertyKey SelectedPathPropertyKey
    Field Value
    Type
    System.Windows.DependencyPropertyKey

    SelectedTreeItemObjectProperty

    Identifies TreeViewAdv. SelectedTreeItemObject dependency property.

    Declaration
    public static readonly DependencyProperty SelectedTreeItemObjectProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedTreeItemProperty

    Identifies TreeViewAdv. SelectedTreeItem dependency property.

    Declaration
    public static readonly DependencyProperty SelectedTreeItemProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedTreeItemsProperty

    Identifies TreeViewAdv. SelectedTreeItems dependency property.

    Declaration
    public static readonly DependencyProperty SelectedTreeItemsProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedValuePathProperty

    Identifies TreeViewAdv. SelectedValuePath dependency property.

    Declaration
    public static readonly DependencyProperty SelectedValuePathProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedValueProperty

    Identifies TreeViewAdv. SelectedValue dependency property.

    Declaration
    public static readonly DependencyProperty SelectedValueProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectionChangedEvent

    Identifies the SelectionChanged routed event.

    Declaration
    public static readonly RoutedEvent SelectionChangedEvent
    Field Value
    Type
    System.Windows.RoutedEvent

    SelectionInActiveForegroundProperty

    Declaration
    public static readonly DependencyProperty SelectionInActiveForegroundProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectionUnfocussedBackcolorProperty

    Identifies the SelectionUnfocussedBackcolor dependency property.

    Declaration
    public static readonly DependencyProperty SelectionUnfocussedBackcolorProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectParentContainerProperty

    Declaration
    public static readonly DependencyProperty SelectParentContainerProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ShowRootLinesProperty

    Identifies TreeViewAdv. ShowRootLines dependency property.

    Declaration
    public static readonly DependencyProperty ShowRootLinesProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SortingDirectionArrowStyleProperty

    Identifies TreeViewAdv. SortingDirectionArrowStyle dependency property of the TreeViewAdv.

    Declaration
    public static readonly DependencyProperty SortingDirectionArrowStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SortingFieldProperty

    Identifies TreeViewAdv. SortingField dependency property.

    Declaration
    public static readonly DependencyProperty SortingFieldProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SortingProperty

    Identifies TreeViewAdv. Sorting dependency property.

    Declaration
    public static readonly DependencyProperty SortingProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    UnSubscribeSelectionChangedEventProperty

    Declaration
    public static readonly DependencyProperty UnSubscribeSelectionChangedEventProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VirtualizationModeProperty

    Declaration
    public static readonly DependencyProperty VirtualizationModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    VisualStyleProperty

    Identifies VisualStyle dependency property.

    Declaration
    public static readonly DependencyProperty VisualStyleProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WrappedColumnsProperty

    Identifies key for TreeViewAdv. WrappedColumns dependency property.

    Declaration
    public static readonly DependencyProperty WrappedColumnsProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    WrappedColumnsPropertyKey

    Identifies TreeViewAdv. WrappedColumns dependency property.

    Declaration
    public static readonly DependencyPropertyKey WrappedColumnsPropertyKey
    Field Value
    Type
    System.Windows.DependencyPropertyKey

    Properties

    AllowDragDrop

    Gets or sets a value indicating whether should be able drag-and-drop of the nodes.

    Declaration
    public bool AllowDragDrop { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the drag-and-drop is allow; otherwise, false. The default value is true.

    Examples

    This example shows how to set AllowDragDrop property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.AllowDragDrop = false;
            }
        }
    }

    This example shows how to set AllowDragDrop property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" AllowDragDrop="false">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    AllowDynamicResizing

    Gets or sets allow dynamic resizing The allow dynamic resizing is used to resize the multicolumn treeview by double click on the column divider This is a dependency property.

    Declaration
    public bool AllowDynamicResizing { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: AllowDynamicResizing Its Default allow dynamic resizing is false.

    See Also
    AllowDynamicResizing

    AllowMultiSelect

    Gets or sets a value indicating whether should be able multiselect of the nodes.

    Declaration
    public bool AllowMultiSelect { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the multiselect is allow; otherwise, false. The default value is true.

    Examples

    This example shows how to set AllowMultiSelect property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.AllowMultiSelect = false;
            }
        }
    }

    This example shows how to set AllowMultiSelect property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" AllowMultiSelect="false">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    AllowsColumnReorder

    Gets or sets a value indicating whether should be able drag-and-drop of the columns for multicolumn.

    Declaration
    public bool AllowsColumnReorder { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the drag-and-drop is allow; otherwise, false. The default value is true.

    Examples

    This example shows how to set AllowsColumnReorder property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.AllowsColumnReorder = false;
            }
        }
    }

    This example shows how to set AllowsColumnReorder property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" AllowsColumnReorder="false">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    AnimationSpeed

    Gets or sets the speed of the animation for collapse and expand.

    Declaration
    public double AnimationSpeed { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double The speed of the animation for collapse and expand. The default value is 1.

    Examples

    This example shows how to set AnimationSpeed property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.AnimationSpeed = 2d;
            }
        }
    }

    This example shows how to set AnimationSpeed property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" AnimationSpeed="2">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Double

    AnimationType

    Gets or sets value indicating whether collapsing and expanding using animation.

    Declaration
    public AnimationType AnimationType { get; set; }
    Property Value
    Type Description
    AnimationType

    Type: AnimationType Specifies the type of a animation. The default value is Slide.

    Examples

    This example shows how to set SortDirection property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.AnimationType = AnimationType.Fade;
            }
        }
    }

    This example shows how to set AnimationType property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" AnimationType="Fade">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    AnimationType

    AutoScrollStartDistance

    Gets or sets the space between two rect.

    Declaration
    public double AutoScrollStartDistance { get; set; }
    Property Value
    Type Description
    System.Double

    The space between two rect.

    Columns

    Gets or sets columns for MultiColumn mode.

    Declaration
    public TreeViewColumnCollection Columns { get; set; }
    Property Value
    Type Description
    TreeViewColumnCollection

    Type: TreeViewColumnCollection The collection of the TreeViewColumn. The default value is a null.

    Examples

    This example shows how to set Columns property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" MultiColumnEnable="True">
        <local:TreeViewItemAdv Header="2222">
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
    <snc:TreeViewAdv.Columns>
        <local:TreeViewColumnCollection>
            <local:TreeViewColumn Width="100" Header="1"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="BBB"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="CCC"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="DDD">
                <local:TreeViewColumn.CellTemplate>
                    <DataTemplate>
                        <Border Margin="1" BorderBrush="Red" BorderThickness="1">
                            <TextBlock Text="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
                        </Border>
                    </DataTemplate>
                </local:TreeViewColumn.CellTemplate>
            </local:TreeViewColumn>
        </local:TreeViewColumnCollection>
    </local:TreeViewAdv.Columns>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    TreeViewItemAdv
    TreeViewColumnCollection

    CornerRadius

    Gets or sets a value that represents the degree to which the corners of a Border are rounded.

    Declaration
    public CornerRadius CornerRadius { get; set; }
    Property Value
    Type Description
    System.Windows.CornerRadius

    Type: CornerRadius Provides CornerRadius value for the TreeViewAdv. The default value of the CornerRadius property is 0.

    Remarks

    CornerRadius dependency property defines corner radius of the TreeViewAdv.

    Examples

    This example shows how to set CornerRadius property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.CornerRadius = new CornerRadius( 10 );
            }
        }
    }

    This example shows how to set CornerRadius property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel" HorizontalAlignment="Center">
    <local:TreeViewAdv Name="myTreeview" CornerRadius="10">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    CornerRadius

    DragAdornerWidth

    Gets or sets the width of the drag adorner.

    Declaration
    public double DragAdornerWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The width of the drag adorner.

    DragDropController

    Gets or sets the DragDropController

    Declaration
    public TreeViewAdvDragDropController DragDropController { get; set; }
    Property Value
    Type
    TreeViewAdvDragDropController

    DragDropEffect

    Gets or sets the drag drop effect.

    Declaration
    public TreeViewItemAdvDragDropEffects DragDropEffect { get; set; }
    Property Value
    Type Description
    TreeViewItemAdvDragDropEffects

    The drag drop effect.

    DraggingContainer

    Gets or sets the dragging container with custom items.

    Declaration
    public ItemsControl DraggingContainer { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.ItemsControl

    The dragging container[ItemsControl].

    DraggingContainerOpacity

    Gest or sets the Dragging container opacity

    Declaration
    public double DraggingContainerOpacity { get; set; }
    Property Value
    Type
    System.Double

    DragIndicatorStyle

    Gets or sets indicator for drag-and-drop.

    Declaration
    public Style DragIndicatorStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    Type: System.Windows.FrameworkElement Specifies the desired drag indicator for displaying drag-and-drop process.

    Examples

    This example shows how to set DragIndicator property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <Window.Resources>
    <Style x:Key="Drag_Marker" TargetType="{x:Type utilsOuter:TemplatedAdornerInternalControl}">
        <Setter Property="HorizontalAlignment" Value="Left"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="SnapsToDevicePixels" Value="False"/>
        <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type utilsOuter:TemplatedAdornerInternalControl}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Rectangle Grid.Column="0"
                                Height="4"
                                Fill="Red"/>
                    </Grid>
            </ControlTemplate>
        </Setter.Value>
        </Setter>
    </Style>
    </Window.Resources>
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview"
        DragIndicator="{StaticResource Drag_Marker}">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.FrameworkElement

    DragMode

    Gets or sets Drag mode whether by Mouse Left button , Right button or Both the DragMode enumeration. The Drag mode is used to choose the mouse button to perform drag operation This is a dependency property.

    Declaration
    public DragMode DragMode { get; set; }
    Property Value
    Type Description
    DragMode

    Type: DragMode Its Default drag mode is LeftButton.

    See Also
    DragMode

    DragOverExpandDelay

    Gets or sets the DragOverExpandDelay

    Declaration
    public TimeSpan DragOverExpandDelay { get; set; }
    Property Value
    Type
    System.TimeSpan

    EditedItemTemplate

    Gets or sets the DataTemplate used to display each item in edit mode.

    Declaration
    public DataTemplate EditedItemTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    Type: System.Windows.DataTemplate A System.Windows.DataTemplate that specifies the visualization of the data objects.

    Examples

    This example shows how to set EditedItemTemplate property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <Window.Resources>
    <DataTemplate x:Key="CustomEditedItemTemplate" DataType="{x:Type des:TreeViewItemAdv}">
        <Border BorderBrush="Red" BorderThickness="1" Margin="1" Padding="2">
            <TextBox Text="{Binding Path=(des:TreeViewItemAdv.Header), Mode=TwoWay, RelativeSource={RelativeSource AncestorType={x:Type des:TreeViewItemAdv}}}"/>
        </Border>
    </DataTemplate>
    </Window.Resources>
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview"
        EditedItemTemplate="{StaticResource CustomEditedItemTemplate}">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.DataTemplate

    EditedItemTemplateSelector

    Gets or sets the edited item template selector.

    Declaration
    public DataTemplateSelector EditedItemTemplateSelector { get; set; }
    Property Value
    Type Description
    System.Windows.Controls.DataTemplateSelector

    Type: System.Windows.DataTemplate A custom System.Windows.Controls.DataTemplateSelector object that provides logic and returns a System.Windows.DataTemplate. The default value is a null reference.

    Examples

    This example shows how to set EditedItemTemplateSelector property in XAML. In the following example, the auctionItemDataTemplateSelector resource name (corresponding to an AuctionItemDataTemplateSelector class) is assigned to the EditedItemTemplateSelector property of the TreeViewAdv.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview"
    EditedItemTemplateSelector="{StaticResource auctionItemDataTemplateSelector}">
    <local:TreeViewItemAdv Header="Employee1">
    <local:TreeViewItemAdv Header="Jesper"/>
    <local:TreeViewItemAdv Header="Aaberg"/>
    <local:TreeViewItemAdv Header="12345"/>
    </local:TreeViewItemAdv>
    <local:TreeViewItemAdv Header="Employee2">
    <local:TreeViewItemAdv Header="Dominik"/>
    <local:TreeViewItemAdv Header="Paiha"/>
    <local:TreeViewItemAdv Header="98765"/>
    </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    </code>
    <para/>The following example shows the implementation
    of the <I>AuctionItemDataTemplateSelector</I> class with
    an override of the SelectTemplate method:
    <code language="C#">
    using System.Windows;
    using System.Windows.Controls;
    namespace SDKSample
    {
    public class AuctionItemDataTemplateSelector : DataTemplateSelector
    {
    public override DataTemplate
    SelectTemplate(object item, DependencyObject container)
    {
    if (item != null && item is AuctionItem)
    {
    AuctionItem auctionItem = item as AuctionItem;
    Window window = Application.Current.MainWindow;
    switch (auctionItem.SpecialFeatures)
    {
    case SpecialFeatures.None:
    return window.FindResource("AuctionItem_None") as DataTemplate;
    case SpecialFeatures.Color:
    return window.FindResource("AuctionItem_Color") as DataTemplate;
    }
    }
    return null;
    }
    }
    }
    See Also
    TreeViewAdv
    System.Windows.DataTemplate

    EnableContentWidth

    Gets or sets the EnableContentWidth

    Declaration
    public bool EnableContentWidth { get; set; }
    Property Value
    Type
    System.Boolean

    EnabledRecursiveSorting

    Gets or sets a value indicating whether this instance have recursive sorting enabled.

    Declaration
    public bool EnabledRecursiveSorting { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is recursive sorting enabled; otherwise, false.

    ExpanderStyle

    Gets or sets a property that enables customization of appearance, effects, or other style expander that will apply to nodes.

    Declaration
    public Style ExpanderStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    Type: System.Windows.Style The desired style to apply on expander.

    Examples

    This example shows how to set ExpanderStyle property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <Window.Resources>
    <!-- Template for TreeViewAdvExpander -->
    <ControlTemplate x:Key="MyFxExpanderTemplateKey" TargetType="{x:Type Expander}">
        <ToggleButton Name="Expander"
                  ClickMode="Press"
                  IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}">
            <ToggleButton.Style>
                <Style TargetType="ToggleButton">
                    <Setter Property="FrameworkElement.Focusable" Value="False"/>
                    <Setter Property="FrameworkElement.Width" Value="19"/>
                    <Setter Property="FrameworkElement.Height" Value="13"/>
                    <Setter Property="Control.Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ToggleButton">
                                <Border Height="10" Width="10" BorderBrush="Black" BorderThickness="1">
                                    <Border Name="BagroundBorder"  Background="Blue">
                                    </Border>
                                </Border>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="ToggleButton.IsChecked" Value="True">
                                        <Setter Property="Background" TargetName="BagroundBorder" Value="Red"/>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ToggleButton.Style>
        </ToggleButton>
    </ControlTemplate>
    <!-- Style for TreeViewAdvExpander -->
    <Style x:Key="MyEStyle" TargetType="{x:Type Expander}">
        <Setter Property="Template" Value="{StaticResource MyFxExpanderTemplateKey}"/>
    </Style>
    </Window.Resources>
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" ExpanderStyle="{DynamicResource MyEStyle}">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Style

    FakeItemForeground

    Gets or sets the Brush to apply to the text contents of the dragging items.

    Declaration
    public Brush FakeItemForeground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush to apply to the text contents of the dragging items.

    Examples

    This example shows how to set FakeItemForeground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.FakeItemForeground = Brushes.Red;
            }
        }
    }

    This example shows how to set FakeItemForeground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" FakeItemForeground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    FakeItemTemplate

    Gets or sets the Fake ItemTemplate

    Declaration
    public DataTemplate FakeItemTemplate { get; set; }
    Property Value
    Type
    System.Windows.DataTemplate

    FakeItemTemplateSelector

    Gets or sets the FakeItemTemplateSelector

    Declaration
    public DataTemplateSelector FakeItemTemplateSelector { get; set; }
    Property Value
    Type
    System.Windows.Controls.DataTemplateSelector

    HandlesScrolling

    Gets whether the TreeViewAdv can scroll

    Declaration
    protected override bool HandlesScrolling { get; }
    Property Value
    Type
    System.Boolean

    IsColumnHeaderAutoWidthEnabled

    Gets or sets the IsColumnHeaderAutoWidthEnabled property.

    Declaration
    public bool IsColumnHeaderAutoWidthEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    The ColumnHeaderAutoWidthEnabled (Target Type is bool).

    IsExpandOnDrop

    Gets or sets a value indicating whether expand item on drop.

    Declaration
    public bool IsExpandOnDrop { get; set; }
    Property Value
    Type
    System.Boolean

    IsFakeDragIndicator

    Gets or sets a value indicating whether uses fake drag indicator.

    Declaration
    public bool IsFakeDragIndicator { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if using fake drag indicator for displaying drag-and-drop process; otherwise, false. The default value is false.

    Remarks

    If you set ShowRootLines to True, for displaying drag-and-drop process is using fake drag indicator.

    Examples

    This example shows how to set IsFakeDragIndicator property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.IsFakeDragIndicator = true;
            }
        }
    }

    This example shows how to set ShowRootLines property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" IsFakeDragIndicator="true">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    IsImageSourceFreeze

    Gets or sets the ImageSourceFreeze or not.

    Declaration
    public bool IsImageSourceFreeze { get; set; }
    Property Value
    Type
    System.Boolean

    IsScrollOnExpand

    Gets or sets a value indicating whether this instance is scroll on expand.

    Declaration
    public bool IsScrollOnExpand { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is scroll on expand; otherwise, false.

    IsSelectOnRightMouseClick

    Gets or sets a value indicating whether uses Select On Right MouseClick.

    Declaration
    public bool IsSelectOnRightMouseClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if using select an item for Right Mouse Click; otherwise, false. The default value is false.

    IsVirtualizing

    Gets or sets a value indicating whether that is using virtualizing.

    Declaration
    public bool IsVirtualizing { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the virtualizing is using; otherwise, false. The default value is true.

    Examples

    This example shows how to set IsVirtualizing property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.IsVirtualizing = false;
            }
        }
    }

    This example shows how to set IsVirtualizing property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" IsVirtualizing="False">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    LineBrush

    Gets or sets a brush that describes the background of a node line.

    Declaration
    public Brush LineBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The brush that is used to fill the line's node.

    Examples

    This example shows how to set LineBrush property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.LineBrush = Brushes.Red;
            }
        }
    }

    This example shows how to set LineBrush property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" LineBrush="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    LinePen

    Gets or sets a brush that describes the pen of a node line.

    Declaration
    public Pen LinePen { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Pen

    Type: System.Windows.Media.Pen The pen that is used to fill the line's node.

    Examples

    This example shows how to set LinePen property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.LinePen = new Pen( Brushes.Red, 1 );
            }
        }
    }

    This example shows how to set LinePen property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview">
        <local:TreeViewAdv.LinePen>
            <Pen Brush="Red" Thickness="2"/>
        </local:TreeViewAdv.LinePen>
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Pen

    LineStrokeDashArray

    Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to outline node line.

    Declaration
    public DoubleCollection LineStrokeDashArray { get; set; }
    Property Value
    Type Description
    System.Windows.Media.DoubleCollection

    Type: System.Windows.Media.DoubleCollection A collection of Double values that specify the pattern of dashes and gaps.

    Examples

    This example shows how to set LineStrokeDashArray property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                DoubleCollection dcollection= new DoubleCollection();
                dcollection.Add(2);
                myTreeView.StrokeDashArray = dcollection;
            }
        }
    }

    This example shows how to set LineStrokeDashArray property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" LineStrokeDashArray="2">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.DoubleCollection

    LineStrokeDashOffset

    Gets or sets a Double that specifies the distance within the dash pattern where a dash begins in node line.

    Declaration
    public double LineStrokeDashOffset { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Windows.Media.DoubleCollection A collection of Double values that specify the pattern of dashes and gaps.

    Examples

    This example shows how to set LineStrokeDashOffset property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.LineStrokeDashOffset = 0.5d;
            }
        }
    }

    This example shows how to set LineStrokeDashOffset property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" LineStrokeDashOffset="0.5">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.DoubleCollection

    LineStrokeThickness

    Gets or sets a stroke thickness that describes the thickness of a node line.

    Declaration
    public double LineStrokeThickness { get; set; }
    Property Value
    Type Description
    System.Double

    Type: System.Double The double that is used to draw the node line.

    Examples

    This example shows how to set StrokeThickness property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.LineStrokeThickness = 2;
            }
        }
    }

    This example shows how to set StrokeThickness property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" LineStrokeThickness="2">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Double

    MouseOverBackground

    Gets or sets the Brush used to fill the background of the item when mouse over.

    Declaration
    public Brush MouseOverBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the background of the item when mouse over.

    Examples

    This example shows how to set MouseOverBackground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.MouseOverBackground = Brushes.Red;
            }
        }
    }

    This example shows how to set MouseOverBackground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" MouseOverBackground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    MouseOverBorderBrush

    Gets or sets the Brush used to fill the border of the item when mouse over.

    Declaration
    public Brush MouseOverBorderBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the border of the item when mouse over.

    Examples

    This example shows how to set MouseOverBackground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.MouseOverBorderBrush = Brushes.Red;
            }
        }
    }

    This example shows how to set MouseOverBorderBrush property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" MouseOverBorderBrush="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    MouseOverForeground

    Gets or sets the Brush to apply to the text contents of the TreeViewItemAdv when mouse over.

    Declaration
    public Brush MouseOverForeground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush to apply to the text contents of the TreeViewItemAdv when mouse over.

    Examples

    This example shows how to set MouseOverForeground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.MouseOverForeground = Brushes.Red;
            }
        }
    }

    This example shows how to set MouseOverForeground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" MouseOverForeground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    MultiColumnEnable

    Gets or sets a value indicating whether item is in MultiColumn mode.

    Declaration
    public bool MultiColumnEnable { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the item displayed in MultiColumn mode; otherwise, false. The default value is false.

    Examples

    This example shows how to set MultiColumnEnable property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.MultiColumnEnable = True;
            }
        }
    }

    This example shows how to set MultiColumnEnable property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" MultiColumnEnable="True">
        <local:TreeViewItemAdv Header="2222">
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            <local:TreeViewItemAdv Header="3333"/>
            </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
        <local:TreeViewItemAdv Header="2222"/>
    <snc:TreeViewAdv.Columns>
        <local:TreeViewColumnCollection>
            <local:TreeViewColumn Width="100" Header="1"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="BBB"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="CCC"
                DisplayMemberBinding="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
            <local:TreeViewColumn Width="50" Header="DDD">
                <local:TreeViewColumn.CellTemplate>
                    <DataTemplate>
                        <Border Margin="1" BorderBrush="Red" BorderThickness="1">
                            <TextBlock Text="{Binding Path=Header, RelativeSource={RelativeSource AncestorType={x:Type snc:TreeViewItemAdv}}}"/>
                        </Border>
                    </DataTemplate>
                </local:TreeViewColumn.CellTemplate>
            </local:TreeViewColumn>
        </local:TreeViewColumnCollection>
    </local:TreeViewAdv.Columns>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    TreeViewItemAdv
    System.Boolean

    PathSeparator

    Gets or sets the path separator which is used in GetNodeFromPath method to search the node in treeview.

    Declaration
    public string PathSeparator { get; set; }
    Property Value
    Type Description
    System.String

    The path separator.

    ScrollHost

    Gets scroll host of the TreeViewAdv.

    Declaration
    public ScrollViewer ScrollHost { get; }
    Property Value
    Type
    System.Windows.Controls.ScrollViewer

    SelectedBackground

    Gets or sets the Brush used to fill the background of the selected items.

    Declaration
    public Brush SelectedBackground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the background of the selected items.

    Examples

    This example shows how to set SelectedBackground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SelectedBackground = Brushes.Red;
            }
        }
    }

    This example shows how to set SelectedBackground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SelectedBackground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    SelectedBorderBrush

    Gets or sets the Brush used to fill the border of the selected items.

    Declaration
    public Brush SelectedBorderBrush { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the border of the selected items.

    Examples

    This example shows how to set SelectedBorderBrush property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SelectedBorderBrush = Brushes.Red;
            }
        }
    }

    This example shows how to set SelectedBorderBrush property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SelectedBorderBrush="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    SelectedContainer

    Gets container of the selected item.

    Declaration
    public TreeViewItemAdv SelectedContainer { get; }
    Property Value
    Type
    TreeViewItemAdv

    SelectedContainers

    Gets containers of the selected items.

    Declaration
    public TreeViewItemAdvCollection SelectedContainers { get; }
    Property Value
    Type
    TreeViewItemAdvCollection

    SelectedForeground

    Gets or sets the Brush to apply to the text contents of the selected items.

    Declaration
    public Brush SelectedForeground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush to apply to the text contents of the selected items.

    Examples

    This example shows how to set SelectedForeground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SelectedForeground = Brushes.Red;
            }
        }
    }

    This example shows how to set SelectedForeground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SelectedForeground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    SelectedItem

    Gets the selected item in a TreeViewAdv.

    Declaration
    public object SelectedItem { get; }
    Property Value
    Type Description
    System.Object

    Type: System.Object The selected object in the TreeViewAdv, or a null reference if no item is selected. The default value is a null reference.

    Remarks

    The SelectedItem property on the TreeViewAdv control is a read-only property and is set to an item when the IsSelected property value of the item TreeViewAdv is set to true.

    Examples

    The following example shows how to get the value of the SelectedItem property in C#.

    TreeViewItemAdv selectedTVI = (TreeViewItemAdv)myTreeView.SelectedItem;
    See Also
    TreeViewAdv
    SelectedItems
    SelectedValue
    SelectedValuePath

    SelectedItems

    Gets the selected items in a TreeViewAdv.

    Declaration
    public TreeObjectCollection SelectedItems { get; }
    Property Value
    Type Description
    TreeObjectCollection

    Type: TreeObjectCollection The collection selected objects in the TreeViewAdv, or a empty collection if no multiply selected items. The default value is a empty TreeObjectCollection.

    Remarks

    The SelectedItems property on the TreeViewAdv control is a read-only property and contains items when the IsSelected property value of the item TreeViewAdv is set to true more than one item.

    Examples

    The following example shows how to get the value of the SelectedItems property in C#.

    TreeObjectCollection selectedTVI = (TreeObjectCollection)myTreeView.SelectedItems;
    See Also
    TreeViewAdv
    SelectedItem
    SelectedValue
    SelectedValuePath
    TreeObjectCollection

    SelectedPath

    Gets path to selected item.

    Declaration
    public string SelectedPath { get; }
    Property Value
    Type Description
    System.String

    Type: System.String A string that contains the path to SelectedItem.

    Remarks

    The value of the SelectedPath is used to determine path to SelectedItem.

    Examples

    The following example shows how to access the SelectedPath property.

    string path = (TreeViewItemAdv)myTreeView.SelectedPath;
    See Also
    TreeViewAdv
    SelectedItem

    SelectedTreeItem

    Gets or sets the selected tree item.

    Declaration
    public object SelectedTreeItem { get; set; }
    Property Value
    Type Description
    System.Object

    The selected tree item.

    SelectedTreeItemObject

    Gets or sets the selected tree item object.

    Declaration
    public object SelectedTreeItemObject { get; }
    Property Value
    Type Description
    System.Object

    The selected tree item object.

    SelectedTreeItems

    Gets or Sets selected items in a TreeViewAdv.

    Declaration
    public ObservableCollection<object> SelectedTreeItems { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<System.Object>

    Type: TreeObjectCollection The collection selected objects in the TreeViewAdv, or a empty collection if no multiply selected items. The default value is a empty TreeObjectCollection.

    Remarks

    The SelectedTreeItems property on the TreeViewAdv control can be Set and contains items when the IsSelected property value of the item TreeViewAdv is set to true more than one item.

    SelectedValue

    Gets the value of the component of the SelectedItem at the specified SelectedValuePath.

    Declaration
    public object SelectedValue { get; }
    Property Value
    Type Description
    System.Object

    Type: System.Object The object that is at the specified SelectedValuePath of the SelectedItem, or a null reference if no item is selected. The default value is a null reference.

    Remarks

    The SelectedValue is determined by the value of the SelectedValuePath property.

    The SelectedValue property is a read-only property. To change the value of a selected item in a TreeViewAdv, use the SelectedItem property to access the TreeViewItemAdv.

    Examples

    The following example shows how to get the value of the SelectedValue property.

    TreeViewItemAdv selectedTVValue = (TreeViewItemAdv)myTreeView.SelectedValue;
    See Also
    TreeViewAdv
    SelectedItem
    SelectedItems
    SelectedValuePath

    SelectedValuePath

    Gets or sets the path that is used to get the SelectedValue of the SelectedItem in a TreeViewAdv.

    Declaration
    public string SelectedValuePath { get; set; }
    Property Value
    Type Description
    System.String

    Type: System.String A string that contains the path that is used to get the SelectedValue. The default value is String.Empty.

    Remarks

    The value of the SelectedValuePath is used to determine the SelectedValue for the SelectedItem in a TreeViewAdv.

    Examples

    The following example shows how to access the SelectedValuePath property.

    TreeViewItemAdv selectedTVValue = (TreeViewItemAdv)myTreeView.SelectedValue;
    See Also
    TreeViewAdv
    SelectedItem
    SelectedItems
    SelectedValue

    SelectionInActiveForeground

    Gets or sets the System.Windows.Media.SolidColorBrush value which is used to change the foreground of the selected items when it lost focus.

    Declaration
    public Brush SelectionInActiveForeground { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the foreground of the selected items.

    Examples

    This example shows how to set SelectionInActiveForeground property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SelectionInActiveForeground = Brushes.Red;
            }
        }
    }

    This example shows how to set SelectionInActiveForeground property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SelectionInActiveForeground="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    SelectionUnfocussedBackcolor

    Gets or sets the Brush used to fill the background of the selected items when it lost focus.

    Declaration
    public Brush SelectionUnfocussedBackcolor { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush The Brush used to fill the background of the selected items.

    Examples

    This example shows how to set SelectionUnfocussedBackcolor property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SelectionUnfocussedBackcolor = Brushes.Red;
            }
        }
    }

    This example shows how to set SelectionUnfocussedBackcolor property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SelectionUnfocussedBackcolor="Red">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Windows.Media.Brush

    SelectParentContainer

    Gets or sets the value of selectparent container

    Declaration
    public bool SelectParentContainer { get; set; }
    Property Value
    Type
    System.Boolean

    ShowRootLines

    Gets or sets a value indicating whether should be shown line near the top-level nodes.

    Declaration
    public bool ShowRootLines { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean true if the line is showed; otherwise, false. The default value is true.

    Remarks

    If you set ShowRootLines to False, lines shows near the top-level nodes.

    Examples

    This example shows how to set ShowRootLines property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.ShowRootLines = false;
            }
        }
    }

    This example shows how to set ShowRootLines property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" ShowRootLines="true">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.Boolean

    Sorting

    Gets or sets sorting direction of the nodes.

    Declaration
    public SortDirection Sorting { get; set; }
    Property Value
    Type Description
    SortDirection

    Type: SortDirection Specifies the direction of a sort operation. The default value is None.

    Examples

    This example shows how to set SortDirection property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SortDirection = SortDirection.Descending;
            }
        }
    }

    This example shows how to set SortDirection property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SortDirection="Descending">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    SortDirection

    SortingDirectionArrowStyle

    Gets or sets the sorting direction arrow style.

    Declaration
    public Style SortingDirectionArrowStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The sorting direction arrow style(Target Type is Path).

    SortingField

    Gets or sets the property name being used as the sorting criteria.

    Declaration
    public string SortingField { get; set; }
    Property Value
    Type Description
    System.String

    Type: System.String The default value is Header.

    Examples

    This example shows how to set SortingField property in C#.

    using System.Windows;
    using Syncfusion.Windows.Tools.Controls;
    namespace Sample1
    {
        public partial class Window1 : Window
        {
            public Window1()
            {
                InitializeComponent();
                myTreeView.SortingField = "Header";
            }
        }
    }

    This example shows how to set SortingField property in XAML.

    <Window x:Class="Sample1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=Syncfusion.Tools.WPF"
    Title="Window1" Height="300" Width="300">
    <StackPanel Name="stackPanel">
    <local:TreeViewAdv Name="myTreeview" SortingField="Header">
        <local:TreeViewItemAdv Header="Employee1">
            <local:TreeViewItemAdv Header="Jesper"/>
            <local:TreeViewItemAdv Header="Aaberg"/>
            <local:TreeViewItemAdv Header="12345"/>
        </local:TreeViewItemAdv>
        <local:TreeViewItemAdv Header="Employee2">
            <local:TreeViewItemAdv Header="Dominik"/>
            <local:TreeViewItemAdv Header="Paiha"/>
            <local:TreeViewItemAdv Header="98765"/>
        </local:TreeViewItemAdv>
    </local:TreeViewAdv>
    </StackPanel>
    </Window>
    See Also
    TreeViewAdv
    System.String

    UnSubscribeSelectionChangedEvent

    Declaration
    public bool UnSubscribeSelectionChangedEvent { get; set; }
    Property Value
    Type
    System.Boolean

    VirtualizationMode

    Gets or sets a value indicating whether Virtualization logic uses IVirtualTree interface.

    Declaration
    public VirtualizationMode VirtualizationMode { get; set; }
    Property Value
    Type Description
    VirtualizationMode

    Extended if Virtualization logic uses IVirtualTree interface; otherwise, Normal.

    VisualStyle

    Gets or sets visual style of the control according to the VisualStyle enumeration. The visual style contains all brushes used for painting the control and all animations applied to the control. This is a dependency property.

    Declaration
    public TreeViewAdvVisualStyle VisualStyle { get; set; }
    Property Value
    Type Description
    TreeViewAdvVisualStyle

    Type: VisualStyle Its Default visual style is Default.

    See Also
    VisualStyle

    WrappedColumns

    Gets wrapped columns for MultiColumn mode.

    Declaration
    public TreeViewColumnCollection WrappedColumns { get; }
    Property Value
    Type Description
    TreeViewColumnCollection

    Type: TreeViewColumnCollection The collection of the TreeViewColumn. The default value is a null.

    See Also
    TreeViewAdv
    TreeViewItemAdv
    TreeViewColumnCollection

    Methods

    AddNodeToSelectedItems(TreeViewItemAdv)

    Inserts node to the end of selected items list.

    Declaration
    public void AddNodeToSelectedItems(TreeViewItemAdv node)
    Parameters
    Type Name Description
    TreeViewItemAdv node

    The node TreeView.

    BringIntoView(TreeViewItemAdv)

    Brings the into view.

    Declaration
    public void BringIntoView(TreeViewItemAdv item)
    Parameters
    Type Name Description
    TreeViewItemAdv item

    The item.

    ClearSelection()

    Clears the selection.

    Declaration
    public void ClearSelection()

    Dispose()

    Declaration
    public void Dispose()

    DoAutoScroll(Point)

    Does the auto scroll.

    Declaration
    public void DoAutoScroll(Point mousePoint)
    Parameters
    Type Name Description
    System.Windows.Point mousePoint

    The mouse point.

    FindItemByPoint(Point)

    Finds item by point.

    Declaration
    public TreeViewItemAdv FindItemByPoint(Point p)
    Parameters
    Type Name Description
    System.Windows.Point p

    The p TreeView.

    Returns
    Type Description
    TreeViewItemAdv

    Treeviewadv value

    GetContainerForItemOverride()

    Creates or identifies the element that is used to display the given item.

    Declaration
    protected override DependencyObject GetContainerForItemOverride()
    Returns
    Type Description
    System.Windows.DependencyObject

    The element that is used to display the given item.

    GetContainerFromItem(Object)

    Retrieve item from the container

    Declaration
    public TreeViewItemAdv GetContainerFromItem(object item)
    Parameters
    Type Name Description
    System.Object item
    Returns
    Type
    TreeViewItemAdv

    GetExpanderStyle(DependencyObject)

    Method gets ExpanderStyleProperty.

    Declaration
    public static Style GetExpanderStyle(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    System.Windows.Style

    ExpanderStyleProperty value.

    GetIsVirtualizing(DependencyObject)

    Method gets IsVirtualizingProperty.

    Declaration
    public static bool GetIsVirtualizing(DependencyObject o)
    Parameters
    Type Name Description
    System.Windows.DependencyObject o

    DependencyObject property.

    Returns
    Type Description
    System.Boolean

    IsVirtualizingProperty value.

    GetItemBrush(TreeViewItemAdv)

    Gets visual brush of the item.

    Declaration
    public VisualBrush GetItemBrush(TreeViewItemAdv item)
    Parameters
    Type Name Description
    TreeViewItemAdv item

    The item TreeView.

    Returns
    Type Description
    System.Windows.Media.VisualBrush

    Visual brush value

    GetItemsPanelType()

    Gets type of the items panel.

    Declaration
    protected virtual Type GetItemsPanelType()
    Returns
    Type Description
    System.Type

    Type value

    GetItemsSize(DependencyObject)

    Method gets ItemsSizeProperty.

    Declaration
    public static Size GetItemsSize(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    System.Windows.Size

    ItemsSizeProperty value.

    GetLineBrush(DependencyObject)

    Method gets LineBrushProperty.

    Declaration
    public static Brush GetLineBrush(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    System.Windows.Media.Brush

    LineBrushProperty value.

    GetNodeFromPath(String)

    Returns a node from the specified path. Make sure that the path does not end with a separator when calling this. This method works only in non-databinding treeview. TreeviewItem should be added in treeview using TreeViewAdv.Items.Add(new TreeViewItemAdv("Test")).

    Declaration
    public TreeViewItemAdv GetNodeFromPath(string path)
    Parameters
    Type Name Description
    System.String path

    The path of the node.

    Returns
    Type Description
    TreeViewItemAdv

    The node that has the specified path.

    Remarks

    This method works only in non-databinding treeview. TreeviewItem should be added in treeview using TreeViewAdv.Items.Add(new TreeViewItemAdv("Test")).

    GetPresenterFromChildren(FrameworkElement)

    Finds parent TreeViewItemAdv for given element.

    Declaration
    public static ContentPresenter GetPresenterFromChildren(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The element.

    Returns
    Type Description
    System.Windows.Controls.ContentPresenter

    TreeviewAdv value

    GetShowRootLines(DependencyObject)

    Method gets ShowRootLinesProperty.

    Declaration
    public static bool GetShowRootLines(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    System.Boolean

    ShowRootLinesProperty value.

    GetSorting(DependencyObject)

    Method gets SortingProperty.

    Declaration
    public static SortDirection GetSorting(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    SortDirection

    SortingProperty value.

    GetSortingField(DependencyObject)

    Method gets SortingFieldProperty.

    Declaration
    public static string GetSortingField(DependencyObject obj)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    DependencyObject property.

    Returns
    Type Description
    System.String

    SortingFieldProperty value.

    GetTreeViewItemFromChildren(FrameworkElement)

    Finds parent TreeViewItemAdv for given element.

    Declaration
    public static TreeViewItemAdv GetTreeViewItemFromChildren(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The element.

    Returns
    Type Description
    TreeViewItemAdv

    TreeviewAdv value

    IsItemItsOwnContainerOverride(Object)

    Determines if the specified item is (or is eligible to be) its own container.

    Declaration
    protected override bool IsItemItsOwnContainerOverride(object item)
    Parameters
    Type Name Description
    System.Object item

    The item to check.

    Returns
    Type Description
    System.Boolean

    Returns true if the item is (or is eligible to be) its own container; otherwise, false.

    OnAfterItemSort(RoutedEventArgs)

    Raises the AfterItemSort event.

    Declaration
    protected virtual void OnAfterItemSort(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnAllowDynamicResizingChanged(DependencyPropertyChangedEventArgs)

    Called when AllowDynamicResizing changed.

    Declaration
    protected void OnAllowDynamicResizingChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnApplyTemplate()

    When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()

    OnBeforeItemSort(RoutedEventArgs)

    Raises the BeforeItemSort event.

    Declaration
    protected virtual void OnBeforeItemSort(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnCollapsed(RoutedEventArgs)

    Raises the CollapsedEvent event.

    Declaration
    protected virtual void OnCollapsed(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnCollapsing(RoutedEventArgs)

    Raises the CollapsingEvent event.

    Declaration
    protected virtual void OnCollapsing(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnCreateAutomationPeer()

    Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    System.Windows.Automation.Peers.AutomationPeer

    The type-specific AutomationPeer implementation.

    OnDragEnter(DragEventArgs)

    Invoked when an unhandled DragDrop.DragEnter attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnDragEnter(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    The DragEventArgs that contains the event data.

    OnDragLeave(DragEventArgs)

    Declaration
    protected override void OnDragLeave(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    OnDragOver(DragEventArgs)

    Invoked when an unhandled DragDrop.DragOver attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnDragOver(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    The DragEventArgs that contains the event data.

    OnDrop(DragEventArgs)

    Called on drop event.

    Declaration
    protected override void OnDrop(DragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DragEventArgs e

    Event arguments

    OnExpanded(RoutedEventArgs)

    Raises the ExpandedEvent event.

    Declaration
    protected virtual void OnExpanded(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnExpanding(RoutedEventArgs)

    Raises the ExpandingEvent event.

    Declaration
    protected virtual void OnExpanding(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The System.Windows.RoutedEventArgs instance containing the event data.

    OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)

    Invoked just before the IsKeyboardFocusWithinChanged event is raised by this element. Implement this method to add class handling for this event.

    Declaration
    protected override void OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    A DependencyPropertyChangedEventArgs that contains the event data.

    OnItemsChanged(NotifyCollectionChangedEventArgs)

    Called when Items of the control is changed.

    Declaration
    protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    The instance containing the event data.

    OnItemsSourceChanged(IEnumerable, IEnumerable)

    Called when the ItemsSource property changes.

    Declaration
    protected override void OnItemsSourceChanged(IEnumerable oldValue, IEnumerable newValue)
    Parameters
    Type Name Description
    System.Collections.IEnumerable oldValue

    Old value of the ItemsSource property.

    System.Collections.IEnumerable newValue

    New value of the ItemsSource property.

    OnKeyDown(KeyEventArgs)

    Invoked when to the KeyDown event is received.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    Information about the event.

    OnLineBrushPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

    Invoked when Line Brush property changed.

    Declaration
    protected static void OnLineBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyObject d

    The dependency object

    System.Windows.DependencyPropertyChangedEventArgs e

    The event data

    OnMouseRightButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled MouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnMouseRightButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The event data. The event data reports that the right mouse button was pressed.

    OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled PreviewMouseLeftButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed.

    OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled PreviewMouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released.

    OnPreviewMouseRightButtonDown(MouseButtonEventArgs)

    Invoked when an unhandled PreviewMouseRightButtonDown routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnPreviewMouseRightButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    the event data. The event data reports that the right mouse button was pressed.

    OnPreviewMouseRightButtonUp(MouseButtonEventArgs)

    Invoked when an unhandled PreviewMouseRightButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnPreviewMouseRightButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The MouseButtonEventArgs that contains the event data. The event data reports that the Right mouse button was released.

    OnPreviewSelectedItemChanged(RoutedPropertyChangedEventArgs<Object>)

    Raises the PreviewSelectedItemChanged event when the SelectedItem property value changes.

    Declaration
    protected virtual void OnPreviewSelectedItemChanged(RoutedPropertyChangedEventArgs<object> e)
    Parameters
    Type Name Description
    System.Windows.RoutedPropertyChangedEventArgs<System.Object> e

    Provides the item that was previously selected and the item that is currently selected for the SelectedItemChanged event.

    OnPreviewTouchDown(TouchEventArgs)

    Declaration
    protected override void OnPreviewTouchDown(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    OnPreviewTouchUp(TouchEventArgs)

    Declaration
    protected override void OnPreviewTouchUp(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    OnQueryContinueDrag(QueryContinueDragEventArgs)

    Declaration
    protected override void OnQueryContinueDrag(QueryContinueDragEventArgs e)
    Parameters
    Type Name Description
    System.Windows.QueryContinueDragEventArgs e

    OnSelectedItemChanged(RoutedPropertyChangedEventArgs<Object>)

    Raises the SelectedItemChanged event when the SelectedItem property value changes.

    Declaration
    protected virtual void OnSelectedItemChanged(RoutedPropertyChangedEventArgs<object> e)
    Parameters
    Type Name Description
    System.Windows.RoutedPropertyChangedEventArgs<System.Object> e

    Provides the item that was previously selected and the item that is currently selected for the SelectedItemChanged event.

    OnSelectionChanged(SelectionChangedEventArgs)

    Raises the SelectedItemChanged event when the SelectedItem property value changes.

    Declaration
    protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Controls.SelectionChangedEventArgs e

    Provides the item that was previously selected and the item that is currently selected for the SelectedItemChanged event.

    OnStylusDown(StylusDownEventArgs)

    Invoked when an unhandled Stylus.StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnStylusDown(StylusDownEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.StylusDownEventArgs e

    The event data.

    OnTouchDown(TouchEventArgs)

    Declaration
    protected override void OnTouchDown(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    PrepareContainerForItemOverride(DependencyObject, Object)

    Prepares the specified element to display the specified item.

    Declaration
    protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
    Parameters
    Type Name Description
    System.Windows.DependencyObject element

    Element used to display the specified item.

    System.Object item

    Specified item.

    RemoveNodeFromSelectedItems(TreeViewItemAdv)

    Removes node from the end of selected items list.

    Declaration
    public void RemoveNodeFromSelectedItems(TreeViewItemAdv node)
    Parameters
    Type Name Description
    TreeViewItemAdv node

    The node TreeView.

    SearchItemByPath(String, Char)

    Searches the item by path.

    Declaration
    public TreeViewItemAdv SearchItemByPath(string path, char pathseperator)
    Parameters
    Type Name Description
    System.String path

    The path.

    System.Char pathseperator

    The pathseperator.

    Returns
    Type Description
    TreeViewItemAdv

    The TreeViewItem value

    SearchItemByPath(String, Char, Boolean)

    Searches the item by path.

    Declaration
    public TreeViewItemAdv SearchItemByPath(string path, char pathseperator, bool IsSelected)
    Parameters
    Type Name Description
    System.String path

    The path.

    System.Char pathseperator

    The pathseperator.

    System.Boolean IsSelected

    if set to true [is selected].

    Returns
    Type Description
    TreeViewItemAdv

    The TreeViewItem value

    SearchItemByPath(String, Char, String)

    Searches the item by path.

    Declaration
    public TreeViewItemAdv SearchItemByPath(string path, char pathseperator, string propertyname)
    Parameters
    Type Name Description
    System.String path

    The path.

    System.Char pathseperator

    The pathseperator.

    System.String propertyname

    The propertyname.

    Returns
    Type Description
    TreeViewItemAdv

    The TreeViewItem value

    SearchItemByPath(String, Char, String, Boolean)

    Searches the item by path.

    Declaration
    public TreeViewItemAdv SearchItemByPath(string path, char pathseperator, string propertyname, bool IsSelected)
    Parameters
    Type Name Description
    System.String path

    The path.

    System.Char pathseperator

    The pathseperator.

    System.String propertyname

    The propertyname.

    System.Boolean IsSelected

    if set to true [is selected].

    Returns
    Type Description
    TreeViewItemAdv

    The TreeViewItem value

    SelectAll()

    Selects all.

    Declaration
    public void SelectAll()

    SetExpanderStyle(DependencyObject, Style)

    Method sets ExpanderStyleProperty.

    Declaration
    public static void SetExpanderStyle(DependencyObject obj, Style value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    System.Windows.Style value

    Set value.

    SetIsVirtualizing(DependencyObject, Boolean)

    Method sets IsVirtualizingProperty.

    Declaration
    public static void SetIsVirtualizing(DependencyObject element, bool value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject element

    Dependency object property.

    System.Boolean value

    Set value.

    SetItemsSize(DependencyObject, Size)

    Method sets ItemsSizeProperty.

    Declaration
    public static void SetItemsSize(DependencyObject obj, Size value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    System.Windows.Size value

    Set value.

    SetLineBrush(DependencyObject, Brush)

    Method sets LineBrushProperty.

    Declaration
    public static void SetLineBrush(DependencyObject obj, Brush value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    System.Windows.Media.Brush value

    Set value.

    SetShowRootLines(DependencyObject, Boolean)

    Method sets ShowRootLinesProperty.

    Declaration
    public static void SetShowRootLines(DependencyObject obj, bool value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    System.Boolean value

    Set value.

    SetSorting(DependencyObject, SortDirection)

    Method sets SortingProperty.

    Declaration
    public static void SetSorting(DependencyObject obj, SortDirection value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    SortDirection value

    Set value.

    SetSortingField(DependencyObject, String)

    Method sets SortingFieldProperty.

    Declaration
    public static void SetSortingField(DependencyObject obj, string value)
    Parameters
    Type Name Description
    System.Windows.DependencyObject obj

    Dependency object property.

    System.String value

    Set value.

    SortTreeView()

    Sorts the tree view.

    Declaration
    public void SortTreeView()

    ToString()

    Returns a String that represents the current Object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A String that represents the current Object.

    Events

    AfterItemSort

    Declaration
    public event SortModeChangeHandler AfterItemSort
    Event Type
    Type Description
    SortModeChangeHandler

    Type: SortModeChangeHandler This event raise after the Sort operations are completed.

    Examples

    The following example shows how to assign an event handler for the AfterItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      AfterItemSort="TreeViewAdv_AfterItemSort"
                      BeforeItemSort="TreeViewAdv_BeforeItemSort">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_AfterItemSort( object sender, SortModeChangeEventArgs e )
    {
        Debug.WriteLine( "AfterItemSort: old( " + e.OldValue + "), new( " + e.NewValue + ")"  );
    }
    private void TreeViewAdv_BeforeItemSort( object sender, SortModeChangeEventArgs e )
    {
        Debug.WriteLine( "BeforeItemSort: old( " + e.OldValue + "), new( " + e.NewValue + ")" );
    }
    See Also
    TreeViewAdv
    SortModeChangeHandler

    AllowDynamicResizingChanged

    Declaration
    public event PropertyChangedCallback AllowDynamicResizingChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    BeforeItemSort

    Declaration
    public event SortModeChangeHandler BeforeItemSort
    Event Type
    Type Description
    SortModeChangeHandler

    Type: SortModeChangeHandler This event raise before the TreeViewItemAdv enters the Sort mode.

    Examples

    The following example shows how to assign an event handler for the BeforeItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      AfterItemSort="TreeViewAdv_AfterItemSort"
                      BeforeItemSort="TreeViewAdv_BeforeItemSort">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_AfterItemSort( object sender, SortModeChangeEventArgs e )
    {
        Debug.WriteLine( "AfterItemSort: old( " + e.OldValue + "), new( " + e.NewValue + ")"  );
    }
    private void TreeViewAdv_BeforeItemSort( object sender, SortModeChangeEventArgs e )
    {
        Debug.WriteLine( "BeforeItemSort: old( " + e.OldValue + "), new( " + e.NewValue + ")" );
    }
    See Also
    TreeViewAdv
    SortModeChangeHandler

    Collapsed

    Declaration
    public event ExpandedCollapsedHandler Collapsed
    Event Type
    Type Description
    ExpandedCollapsedHandler

    Type: SortModeChangeHandler This event raise before the TreeViewItemAdv enters the Collapsed mode.

    Examples

    The following example shows how to assign an event handler for the BeforeItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      Collapsed="TreeViewAdv_Collapsed">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_Collapsed( object sender, ExpandCollapseEventArgs e )
    {
    

    }

    See Also
    TreeViewAdv

    Collapsing

    Declaration
    public event ExpandingCollapsingHandler Collapsing
    Event Type
    Type Description
    ExpandingCollapsingHandler

    Type: SortModeChangeHandler This event raise before the TreeViewItemAdv enters the Collapsing mode.

    Examples

    The following example shows how to assign an event handler for the BeforeItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      Collapsing="TreeViewAdv_Collapsing">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_Collapsing( object sender, ExpandCollapseEventArgs e )
    {
    

    }

    See Also
    TreeViewAdv

    DragCompleted

    Declaration
    public event DragTreeViewItemAdvHandler DragCompleted
    Event Type
    Type
    DragTreeViewItemAdvHandler

    DragEnd

    Occurs when end dragging.

    Declaration
    public event DragTreeViewItemAdvHandler DragEnd
    Event Type
    Type Description
    DragTreeViewItemAdvHandler

    Type: DragTreeViewItemAdvHandler

    Examples

    The following example shows how to specify an event handler for the DragEnd event in XAML.

    
    
    
    
    
    
    
    
    
    
    
    

    The following example shows how to define the event handler.

    public void OnDragEnd(object sender, DragTreeViewItemAdvEventArgs e)
    {
        //Perform actions when DragEnd changes
    }
    See Also
    TreeViewAdv
    System.Windows.RoutedEventHandler

    DragOver

    Occurs when the items start dragging.

    Declaration
    public event DragTreeViewItemAdvHandler DragOver
    Event Type
    Type Description
    DragTreeViewItemAdvHandler

    Type: DragTreeViewItemAdvHandler

    Examples

    The following example shows how to specify an event handler for the DragOver event in XAML.

    
    
    
    
    
    
    
    
    
    
    
    

    The following example shows how to define the event handler.

    public void OnDragOver(object sender, DragTreeViewItemAdvEventArgs e)
    {
        //Perform actions when DragEnd changes
    }
    See Also
    TreeViewAdv
    System.Windows.RoutedEventHandler

    DragStart

    Occurs when the items start dragging.

    Declaration
    public event DragTreeViewItemAdvHandler DragStart
    Event Type
    Type Description
    DragTreeViewItemAdvHandler

    Type: DragTreeViewItemAdvHandler

    Examples

    The following example shows how to specify an event handler for the DragStart event in XAML.

    
    
    
    
    
    
    
    
    
    
    
    

    The following example shows how to define the event handler.

    public void OnDragStart(object sender, DragTreeViewItemAdvEventArgs e)
    {
        //Perform actions when DragEnd changes
    }
    See Also
    TreeViewAdv
    System.Windows.RoutedEventHandler

    Expanded

    Declaration
    public event ExpandedCollapsedHandler Expanded
    Event Type
    Type Description
    ExpandedCollapsedHandler

    Type: SortModeChangeHandler This event raise before the TreeViewItemAdv enters the Expanded mode.

    Examples

    The following example shows how to assign an event handler for the BeforeItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      Expanded="TreeViewAdv_Expanded">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_Expanded( object sender, ExpandCollapseEventArgs e )
    {
    

    }

    See Also
    TreeViewAdv

    Expanding

    Declaration
    public event ExpandingCollapsingHandler Expanding
    Event Type
    Type Description
    ExpandingCollapsingHandler

    Type: SortModeChangeHandler This event raise before the TreeViewItemAdv enters the Expanding mode.

    Examples

    The following example shows how to assign an event handler for the BeforeItemSort event to a TreeViewItemAdv, and how to define the event handler in the code-behind.

        <TreeViewAdv Header="Work Days"
                      Name="emp2WorkDays"
                      Expanding="TreeViewAdv_Expanding">
            <TreeViewItemAdv Header="Monday" />
            <TreeViewItemAdv Header="Wednesday"/>
        </TreeViewAdv>
    private void TreeViewAdv_Expanding( object sender, ExpandCollapseEventArgs e )
    {
    

    }

    See Also
    TreeViewAdv

    ItemGenerated

    Occurs when [item generated].

    Declaration
    public event RoutedEventHandler ItemGenerated
    Event Type
    Type
    System.Windows.RoutedEventHandler

    LoadOnDemand

    Event gets fired when expanding the TreeViewItemAdv in OnDemandLoading.

    Declaration
    public event LoadOnDemandEventHandler LoadOnDemand
    Event Type
    Type
    LoadOnDemandEventHandler

    PreviewSelectedItemChanged

    Occurs before the SelectedItem changes.

    Declaration
    public event RoutedPropertyChangedEventHandler<object> PreviewSelectedItemChanged
    Event Type
    Type Description
    System.Windows.RoutedPropertyChangedEventHandler<System.Object>

    Type: System.Windows.RoutedEventHandler

    Examples

    The following example shows how to specify an event handler for the SelectedItemChanged event in XAML.

    
    
    
    
    
    
    
    
    
    
    
    

    The following example shows how to define the event handler.

    public void PreviewSelectionChanged(object sender, RoutedEventArgs e)
    {
        //Perform actions when SelectedItem changes
    }
    See Also
    TreeViewAdv
    System.Windows.RoutedEventHandler

    SelectedItemChanged

    Occurs when the SelectedItem changes.

    Declaration
    public event RoutedPropertyChangedEventHandler<object> SelectedItemChanged
    Event Type
    Type Description
    System.Windows.RoutedPropertyChangedEventHandler<System.Object>

    Type: System.Windows.RoutedEventHandler

    Examples

    The following example shows how to specify an event handler for the SelectedItemChanged event in XAML.

    
    
    
    
    
    
    
    
    
    
    
    

    The following example shows how to define the event handler.

    public void SelectionChanged(object sender, RoutedEventArgs e)
    {
        //Perform actions when SelectedItem changes
    }
    See Also
    TreeViewAdv
    System.Windows.RoutedEventHandler

    SelectionChanged

    Occurs when [selection changed].

    Declaration
    public event SelectionChangedEventHandler SelectionChanged
    Event Type
    Type
    System.Windows.Controls.SelectionChangedEventHandler

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved