New to Telerik UI for WPFStart a free 30-day trial

A hierarchical control used to display a tree of items.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
[Themable]
public class RadTreeView : ItemsControl, IScrollingServiceCore, IScrollingInfo

Inheritance: objectRadTreeView

Derived Classes: FileBrowserTreeViewRadPanelBar

Implements: IScrollingInfoIScrollingServiceCore

Constructors

Initializes a new instance of the RadTreeView class.

C#
public RadTreeView()
Remarks:

Use this constructor to create and initialize a new instance of the RadTreeView control.

Fields

Identifies the AutoScrollToSelectedItem property.

C#
public static readonly DependencyProperty AutoScrollToSelectedItemProperty

BringIntoViewModeProperty

DependencyProperty

Identifies the BringIntoView property.

C#
public static readonly DependencyProperty BringIntoViewModeProperty

CheckedItemsProperty

DependencyProperty

Identifies the CheckedItemsProperty dependency property.

C#
public static readonly DependencyProperty CheckedItemsProperty

DragEndedEvent

RoutedEvent

Identifies the DragEnded routed event.

C#
[Obsolete("This property will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public static readonly RoutedEvent DragEndedEvent

Identifies the DragOverTree routed event.

C#
[Obsolete("This property will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public static readonly RoutedEvent DragOverTreeEvent

DragStartedEvent

RoutedEvent

Identifies the DragStarted routed event.

C#
[Obsolete("This property will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public static readonly RoutedEvent DragStartedEvent

DropExpandDelayProperty

DependencyProperty

Identifies the DropExpandDelay property.

C#
public static readonly DependencyProperty DropExpandDelayProperty

ExpanderStyleProperty

DependencyProperty

Identifies the ExpanderStyle dependency property.

C#
public static readonly DependencyProperty ExpanderStyleProperty

ImagesBaseDirProperty

DependencyProperty

Identifies the ImagesBaseDirectory dependency property.

C#
public static readonly DependencyProperty ImagesBaseDirProperty

IsDragDropEnabledProperty

DependencyProperty

Identifies the IsDragDropEnabled dependency property.

C#
public static readonly DependencyProperty IsDragDropEnabledProperty

Identifies the IsDragPreviewEnabled dependency property.

C#
public static readonly DependencyProperty IsDragPreviewEnabledProperty

Identifies the IsDragTooltipEnabled dependency property.

C#
public static readonly DependencyProperty IsDragTooltipEnabledProperty

Identifies the IsDropPreviewLineEnabled dependency property.

C#
public static readonly DependencyProperty IsDropPreviewLineEnabledProperty

IsEditableProperty

DependencyProperty

Identifies the IsEditable dependency property.

C#
public static readonly DependencyProperty IsEditableProperty

Identifies the IsExpandOnDoubleClickEnabled dependency property.

C#
public static readonly DependencyProperty IsExpandOnDblClickEnabledProperty

Identifies the IsExpandOnSingleClickEnabled dependency property.

C#
public static readonly DependencyProperty IsExpandOnSingleClickEnabledProperty

IsLineEnabledProperty

DependencyProperty

Identifies the IsLineEnabled dependency property.

C#
public static readonly DependencyProperty IsLineEnabledProperty

Identifies the IsLoadOnDemandEnabled dependency property.

C#
public static readonly DependencyProperty IsLoadOnDemandEnabledProperty

Identifies the IsOptionElementsEnabled dependency property.

C#
public static readonly DependencyProperty IsOptionElementsEnabledProperty

IsRootLinesEnabledProperty

DependencyProperty

Identifies the IsRootLinesEnabled dependency property.

C#
public static readonly DependencyProperty IsRootLinesEnabledProperty

IsSingleExpandPathProperty

DependencyProperty

Identifies the IsSingleExpandPath dependency property.

C#
public static readonly DependencyProperty IsSingleExpandPathProperty

IsTriStateModeProperty

DependencyProperty

Identifies the IsTriStateMode dependency property.

C#
public static readonly DependencyProperty IsTriStateModeProperty

ItemEditTemplateProperty

DependencyProperty

Identifies the ItemEditTemplate dependency property.

C#
public static readonly DependencyProperty ItemEditTemplateProperty

Identifies the ItemEditTemplateSelector dependency property.

C#
public static readonly DependencyProperty ItemEditTemplateSelectorProperty

ItemsIndentProperty

DependencyProperty

Identifies the ItemsIndent dependency property.

C#
public static readonly DependencyProperty ItemsIndentProperty

PathSeparatorProperty

DependencyProperty

Identifies the PathSeparator dependency property.

C#
public static readonly DependencyProperty PathSeparatorProperty

Identifies the PerformSelectionOnMouseUp property.

C#
public static readonly DependencyProperty PerformSelectionOnMouseUpProperty

Identifies the PreviewDragEnded routed event.

C#
[Obsolete("This property will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public static readonly RoutedEvent PreviewDragEndedEvent

Identifies the PreviewDragStarted routed event.

C#
[Obsolete("This property will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public static readonly RoutedEvent PreviewDragStartedEvent

Identifies the PreviewSelectionChanged routed event.

C#
public static readonly RoutedEvent PreviewSelectionChangedEvent

SelectedContainerProperty

DependencyProperty

Identifies the SelectedContainer property.

C#
public static readonly DependencyProperty SelectedContainerProperty

SelectedItemProperty

DependencyProperty

Identifies the SelectedItem property.

C#
public static readonly DependencyProperty SelectedItemProperty

SelectedItemsProperty

DependencyProperty

Identifies the SelectedItemsProperty dependency property.

C#
public static readonly DependencyProperty SelectedItemsProperty

SelectedValuePathProperty

DependencyProperty

Identifies the SelectedValuePath dependency property.

C#
public static readonly DependencyProperty SelectedValuePathProperty

SelectedValueProperty

DependencyProperty

Identifies the SelectedValue dependency property.

C#
public static readonly DependencyProperty SelectedValueProperty

Identifies the SelectionChanged routed event.

C#
public static readonly RoutedEvent SelectionChangedEvent

SelectionModeProperty

DependencyProperty

Identifies the SelectionMode dependency property.

C#
public static readonly DependencyProperty SelectionModeProperty

TextDropAfterProperty

DependencyProperty

Identifies the TextDropAfter dependency property.

C#
public static readonly DependencyProperty TextDropAfterProperty

TextDropBeforeProperty

DependencyProperty

Identifies the TextDropBefore dependency property.

C#
public static readonly DependencyProperty TextDropBeforeProperty

TextDropInProperty

DependencyProperty

Identifies the TextDropIn dependency property.

C#
public static readonly DependencyProperty TextDropInProperty

TextDropRootProperty

DependencyProperty

Identifies the TextDropRoot dependency property.

C#
public static readonly DependencyProperty TextDropRootProperty

TextSearchModeProperty

DependencyProperty

Identifies the TextSearchMode dependency property.

C#
public static readonly DependencyProperty TextSearchModeProperty

Properties

Gets or sets a value indicating whether the selected RadTreeViewItem should be scrolled into the viewport. When using virtualization this property works only for realized RadTreeViewItem(s).

C#
public bool AutoScrollToSelectedItem { get; set; }

Gets or sets whether just the item's header should be brought into view when the respective methods are called of the header and its items.

C#
public BringIntoViewMode BringIntoViewMode { get; set; }

Gets a collection containing the items that are currently checked.

C#
public ICollection<object> CheckedItems { get; }

Gets or sets the time has to pass before an item will be expanded because of something being dragged over it. This is a dependency property.

C#
public TimeSpan DropExpandDelay { get; set; }

Gets or sets the style of RadTreeViewItem expander button.

C#
[Browsable(false)]
public Style ExpanderStyle { get; set; }
Remarks:

The expander button is a ToggleButton. To modify the appearance of the expander first create a Style for a ToggleButton and then set the defined style to this property.

Gets or sets the directory where image files used for the TreeView images.

C#
public string ImagesBaseDir { get; set; }

Gets or sets a value indicating whether drag and drop is enabled.

C#
public bool IsDragDropEnabled { get; set; }

Gets or sets a value indicating whether drag feedback is shown while dragging.

C#
public bool IsDragPreviewEnabled { get; set; }

Gets or sets a value indicating whether drag tooltip is shown while dragging.

C#
public bool IsDragTooltipEnabled { get; set; }

Gets or sets a value indicating whether drag outline is shown while dragging.

C#
public bool IsDropPreviewLineEnabled { get; set; }

Gets or sets a value indicating whether the user can edit the TreeViewItems.

C#
public bool IsEditable { get; set; }

Gets if there is an open editor in the tree view.

C#
[Browsable(false)]
public virtual bool IsEditing { get; }

Gets or sets a value whether the item will toggle its expand state on double click.

C#
public bool IsExpandOnDblClickEnabled { get; set; }

Gets or sets a value indicating whether the item will toggle its expand state on single click.

C#
public bool IsExpandOnSingleClickEnabled { get; set; }

Gets or sets a value indicating whether connecting lines are displayed.

C#
public bool IsLineEnabled { get; set; }

Gets or sets a value indicating whether loading on demand is enabled.

C#
public bool IsLoadOnDemandEnabled { get; set; }
Remarks:

When the value is set to true the expander visual will be visible even if the item do no have children. When the expander visual is clicked, the event is raised and you can populate the node.

Gets or sets a value indicating whether checkboxes/radio buttons are displayed besides the TreeViewItems.

C#
public bool IsOptionElementsEnabled { get; set; }

Gets or sets a value indicating whether lines are displayed next to root item.

C#
public bool IsRootLinesEnabled { get; set; }

Gets a value indicating whether only one branch of the TreeView will be expanded.

C#
public bool IsSingleExpandPath { get; set; }
Remarks:

The property closes all item that are not parents of the last expanded item.

Gets or sets a value indicating whether tri state mode for the checkboxes in the option lists is enabled.

C#
public bool IsTriStateMode { get; set; }
Remarks:

When the value is set to true the checked state of the item depends on the checked state of its child items. When the checked state of the item is changed - the child items state is also changed.

Gets or sets a value indicating whether the TreeView should virtualize its items. Virtualization should be used only when the TreeView is data bound.

C#
public bool IsVirtualizing { get; set; }
Remarks:

This is a CLR wrapper for the TreeViewPanel.IsVirtualizing property. It will only work if the ItemsPanel of the TreeViewItem is a TreeViewPanel.

ItemEditTemplate

DataTemplate

Gets or sets the template that the items will display when edited.

C#
public DataTemplate ItemEditTemplate { get; set; }
Property Value:

The item edit template.

ItemEditTemplateSelector

DataTemplateSelector

Gets or sets the template selector that the items will use to select a template to display when edited.

C#
public DataTemplateSelector ItemEditTemplateSelector { get; set; }
Property Value:

The item edit template selector.

Gets or sets the distance that each tree item level will be indented.

C#
public int ItemsIndent { get; set; }

Gets or sets the delimiter string that the tree item path uses.

C#
public string PathSeparator { get; set; }
Remarks:

The tree item path contains of a set of tree item labels separated by the PathSeparator delimiter strings.
The default return value is the backslash character ().

Gets or sets a boolean value indicating whether the selection will be performed on mouse up.

C#
public bool PerformSelectionOnMouseUp { get; set; }

ScrollViewer

ScrollViewer

Gets the ScrollViewer control the is inside the RadTreeView.

C#
public ScrollViewer ScrollViewer { get; }
Remarks:

Use the ScrollViewer.HorizontalScrollBarVisibility and ScrollViewer.VerticalScrollBarVisibility attached properties to set the visibility of the ScrollBars.

Gets the TreeViewItem container that is currently selected. This is a dependency property.

C#
public RadTreeViewItem SelectedContainer { get; }

Gets or sets the item that is currently selected. This is a dependency property.

C#
public object SelectedItem { get; set; }

Gets a collection containing the items that are currently selected.

C#
[Browsable(false)]
public ObservableCollection<object> SelectedItems { get; }

Gets or sets the value of the SelectedItem, obtained by using SelectedValuePath.

C#
public object SelectedValue { get; }

Gets or sets the path that is used to extract the SelectedValue from the SelectedItem.

C#
public string SelectedValuePath { get; set; }

SelectionMode

SelectionMode

Gets or sets the selection mode.

C#
public SelectionMode SelectionMode { get; set; }

Gets or sets the text "Drop after" text of the drag preview.

C#
public string TextDropAfter { get; set; }
Property Value:

The text drop after.

Gets or sets the text "Drop before" text of the drag preview.

C#
public string TextDropBefore { get; set; }
Property Value:

The text drop before.

Gets or sets the text for "Drop in" text of the drag preview.

C#
public string TextDropIn { get; set; }
Property Value:

The text drop in.

Gets or sets the text that appears when an item is dropped in an empty TreeView.

C#
public string TextDropRoot { get; set; }
Property Value:

The text drop in.

Gets or sets the text search mode. Specifies how TextSearch will match items. This is a dependency property.

C#
public TextSearchMode TextSearchMode { get; set; }
Property Value:

The text search mode.

Methods

Creates a new item and adds a item by path. The label of the new item will be the text after the last separator.

C#
public RadTreeViewItem AddItemByPath(string path, string separator)
Parameters:pathstring

Where the item should be added.

separatorstring

The path separator.

Returns:

RadTreeViewItem

The new item if the operation is successful.

Creates a new item and adds a item by path. Can be used if the TreeView is not data bound.

C#
public RadTreeViewItem AddItemByPath(string path)
Parameters:pathstring

Where the item should be added.

Returns:

RadTreeViewItem

The new item if the operation is successful.

Adds an item at the given path, given that the TreeView is not bound.

C#
public RadTreeViewItem AddItemsByPath(string path, string separator)
Parameters:pathstring

The path to create an item at.

separatorstring

The path separator.

Returns:

RadTreeViewItem

The newly created RadTreeViewItem.

Brings the item with the given index into view. The method will not work before the item containers have been generated.

C#
public void BringIndexIntoView(int index, Point offset)
Parameters:indexint

The index of the item to be brought into view.

offsetPoint

The offset to tree view top left corner where the item should be scrolled to.

Brings the item with the given index into view. The method will not work before the item containers have been generated.

C#
public void BringIndexIntoView(int index)
Parameters:indexint

The index of the item to be brought into view.

Brings the given item into view. This is not a recursive method, it will only work for immediate items. The method will not work before the item containers have been generated.

C#
public void BringItemIntoView(object item, Point offset)
Parameters:itemobject

The item to be brought into view.

offsetPoint

The offset to tree view top left corner where the item should be scrolled to.

Brings the given item into view. This is not a recursive method, it will only work for immediate items. The method will not work before the item containers have been generated.

C#
public void BringItemIntoView(object item)
Parameters:itemobject

The item to be brought into view.

Brings an item into view. Works recursively for nested containers. If the Loaded event has not been fired yet the method will be scheduled for execution after the Loaded event. The method will realize the required containers if they are not yet created.

C#
public void BringPathIntoView(string path, Point offset)
Parameters:pathstring

The path of the item to be brought into view.

offsetPoint

The offset from the top left corner of the tree where the item will be scrolled to.

Brings an item into view. Works recursively for nested containers. If the Loaded event has not been fired yet the method will be scheduled for execution after the Loaded event. The method will realize the required containers if they are not yet created.

C#
public void BringPathIntoView(string path)
Parameters:pathstring

The path of the item to be brought into view.

Updates the visual state of the control.

C#
protected void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool
C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObjectitemobject

Collapses all items recursively.

C#
public void CollapseAll()

Recursively searches the tree view in the tree to get an item container (RadTreeViewItem) for the particular data item.

C#
public RadTreeViewItem ContainerFromItemRecursive(object item)
Parameters:itemobjectReturns:

RadTreeViewItem

Creates default drag visual content - snapshot of all dragged items. Override this method in subclass in order to change the default drag visual content.

C#
protected virtual object CreateDragVisualContent(IList<object> draggedItems)
Parameters:draggedItemsIList<object>Returns:

object

Expands all items recursively.

C#
public void ExpandAll()
Remarks:

If a child item is not generated it will be expanded once it is generated.

Expands to an item with a given path.

C#
public void ExpandItemByPath(string path, string separator)
Parameters:pathstring

The path to an item.

separatorstring

The separator for the path.

Expands to an item with a given path.

C#
public void ExpandItemByPath(string path)
Parameters:pathstring

The path to an item.

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Gets a item by specifying a path to it.

C#
public RadTreeViewItem GetItemByPath(string path, string separator)
Parameters:pathstring

The path to the item.

separatorstring

The path separator.

Returns:

RadTreeViewItem

The item if found.

Gets a item by specifying a path to it.

C#
public RadTreeViewItem GetItemByPath(string path)
Parameters:pathstring

The path to the item.

Returns:

RadTreeViewItem

The item if found.

Hides the drag cue that appears when a drop between two items is possible.

C#
[Obsolete("This method will be removed. It is not intended for third party usage.", false)]
public void HideBetweenItemsDragCue()
C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobjectReturns:

bool

Occurs when the template for the RadTreeView is applied, allowing for custom processing after the template has been applied.

C#
public override void OnApplyTemplate()
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event.

C#
[Obsolete("This method will be removed. Use DragDropManager API to customize drag drop operations.", false)]
protected virtual void OnDragEnded(RadTreeViewDragEndedEventArgs e)
Parameters:eRadTreeViewDragEndedEventArgs

The RadTreeViewDragEndedEventArgs instance containing the event data.

Called when DragEnter Event is Raise.

C#
protected override void OnDragEnter(DragEventArgs e)
Parameters:eDragEventArgs

Event args.

Called when DragEnter Event is Raise.

C#
protected override void OnDragLeave(DragEventArgs e)
Parameters:eDragEventArgs

Event args.

Raises the event.

C#
[Obsolete("This method will be removed. Use DragDropManager API to customize drag drop operations.", false)]
protected virtual void OnDragOverTree(DragOverTreeEventArgs e)
Parameters:eDragOverTreeEventArgs

The DragOverTreeEventArgs instance containing the event data.

Raises the event.

C#
[Obsolete("This method will be removed. Use DragDropManager API to customize drag drop operations.", false)]
protected virtual void OnDragStarted(RadTreeViewDragEventArgs e)
Parameters:eRadTreeViewDragEventArgs

The RadTreeViewDragEventArgs instance containing the event data.

Called when DragEnter Event is Raise.

C#
protected override void OnDrop(DragEventArgs e)
Parameters:eDragEventArgs

Event args.

Propagates the changed expander style through tree's children. Called when the ExpanderStyleInherited property changes.

C#
protected virtual void OnExpanderStyleChanged(Style oldStyle, Style newStyle)
Parameters:oldStyleStyle

The old style.

newStyleStyle

The new style.

Called when the TreeView or one of its items receive focus.

C#
protected virtual void OnGotFocus(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender of the event.

eRoutedEventArgs

The event arguments that will be passed to the GotFocus event.

C#
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs
C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

Raises the event.

C#
protected virtual void OnItemPrepared(RadTreeViewItemPreparedEventArgs e)
Parameters:eRadTreeViewItemPreparedEventArgs

The RadTreeViewDragEndedEventArgs instance containing the event data.

C#
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

Called when the TreeView or one of its items lose focus.

C#
protected virtual void OnLostFocus(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender of the event.

eRoutedEventArgs

The event arguments that are passed to the LostFocus event.

C#
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs
C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs
C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

Raises the event.

C#
[Obsolete("This method will be removed. Use DragDropManager API to customize drag drop operations.", false)]
protected virtual bool OnPreviewDragEnded(RadTreeViewDragEndedEventArgs e)
Parameters:eRadTreeViewDragEndedEventArgs

The RadTreeViewDragEndedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
[Obsolete("This method will be removed. Use DragDropManager API to customize drag drop operations.", false)]
protected virtual bool OnPreviewDragStarted(RadTreeViewDragEventArgs e)
Parameters:eRadTreeViewDragEventArgs

The RadTreeViewDragEventArgs instance containing the event data.

Returns:

bool

This method is called when the PreviewSelectionChanged is raised.

C#
protected virtual bool OnPreviewSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The event arguments with which the event will be called.

Returns:

bool

Returns whether the event was handled.

Remarks:

Not calling the base method in overrides means that the PreviewSelectionChanged event will not be raised.

Raises the event.

C#
protected virtual void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The SelectionChangedEventArgs instance containing the event data.

C#
protected override void OnTextInput(TextCompositionEventArgs e)
Parameters:eTextCompositionEventArgs
C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObjectitemobject

Resets the theme.

C#
public void ResetTheme()

Adds the item with the given path to the collection of selected items. The path separator is "".

C#
public void SelectItemByPath(string path, string separator)
Parameters:pathstring

A unique path for the item, normally made up of IDs.

separatorstring

The string separating the path elements, for example "".

Adds the item with the given path to the collection of selected items. The path separator is "".

C#
public void SelectItemByPath(string path)
Parameters:pathstring

A unique path for the item, normally made up of IDs.

Shows the DragCue that appears when a drop between two items is possible.

C#
[Obsolete("This method will be removed. It is not intended for third party usage.", false)]
public void ShowBetweenItemsDragCue(RadTreeViewItem dropDestination)
Parameters:dropDestinationRadTreeViewItem

The relative drop position. In this method only DropPosition.Before and DropPosition.After make sense.

Updates the drop preview line position and visibility while dragging.

C#
public void UpdateDropPreviewLine(RadTreeViewItem dropDestination, DropPosition dropPosition)
Parameters:dropDestinationRadTreeViewItemdropPositionDropPosition

Events

Occurs when a child TreeView item has been checked.

C#
public event EventHandler<RadRoutedEventArgs> Checked

Occurs when a child TreeView item has been collapsed.

C#
public event EventHandler<RadRoutedEventArgs> Collapsed

Occurs when the drag has ended.

C#
[Obsolete("This event will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public event RadTreeViewDragEndedEventHandler DragEnded

Occurs when the dragging over the tree view.

C#
[Obsolete("This event will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public event DragOverTreeEventHandler DragOverTree

Occurs when the drag has started.

C#
[Obsolete("This event will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public event RadTreeViewDragEventHandler DragStarted

Raised when item editing has been canceled. This is a wrapper for the EditableHeaderedItemsControl.EditCanceled routed event.

C#
public event RadTreeViewItemEditedEventHandler EditCanceled

Raised when the edit of an item has been committed.

C#
public event RadTreeViewItemEditedEventHandler Edited

Raised when the edit of an item has just started. This is a wrapper for the EditableHeaderedItemsControl.EditStarted routed event.

C#
public event RadTreeViewItemEditedEventHandler EditStarted

Occurs when a child TreeView item has been expanded.

C#
public event EventHandler<RadRoutedEventArgs> Expanded

Occurs when a child TreeView item has been clicked.

C#
public event EventHandler<RadRoutedEventArgs> ItemClick

Occurs when a child TreeView item has been double clicked.

C#
public event EventHandler<RadRoutedEventArgs> ItemDoubleClick

Occurs when a child RadTreeViewItem has been prepared and is ready for use.

C#
public event EventHandler<RadTreeViewItemPreparedEventArgs> ItemPrepared
Remarks:

Use it to perform binding of RadTreeViewItem properties to the data objects.

Occurs when a child TreeView item is loading its child items on demand. See the IsLoadOnDemandEnabled property.

C#
public event EventHandler<RadRoutedEventArgs> LoadOnDemand

Occurs before a child TreeView item is checked.

C#
public event EventHandler<RadRoutedEventArgs> PreviewChecked

Occurs before a child TreeView item is collapsed.

C#
public event EventHandler<RadRoutedEventArgs> PreviewCollapsed

Occurs before the drag has been ended.

C#
[Obsolete("This event will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public event RadTreeViewDragEndedEventHandler PreviewDragEnded

Occurs before the drag is started.

C#
[Obsolete("This event will be removed. Use DragDropManager API to customize drag drop operations.", false)]
public event RadTreeViewDragEventHandler PreviewDragStarted

Raised just before item editing has been canceled. This is a wrapper for the EditableHeaderedItemsControl.PreviewEditCanceled routed event.

C#
public event RadTreeViewItemEditedEventHandler PreviewEditCanceled

Occurs before a TreeView item to accept the new Edited data.

C#
public event RadTreeViewItemEditedEventHandler PreviewEdited

Raised just before editing of an item has started. This is a wrapper for the EditableHeaderedItemsControl.PreviewEditStarted routed event.

C#
public event RadTreeViewItemEditedEventHandler PreviewEditStarted

Occurs before a child TreeView item is expanded.

C#
public event EventHandler<RadRoutedEventArgs> PreviewExpanded

Occurs before a child tree view item is selected.

C#
public event EventHandler<RadRoutedEventArgs> PreviewSelected

PreviewSelectionChanged

SelectionChangedEventHandler

Raised just before the selected items collection has changed.

C#
public event SelectionChangedEventHandler PreviewSelectionChanged

Occurs before a child TreeView item is unchecked.

C#
public event EventHandler<RadRoutedEventArgs> PreviewUnchecked

Occurs before a child tree view item is unselected.

C#
public event EventHandler<RadRoutedEventArgs> PreviewUnselected

Occurs when a child RadTreeView item has been selected.

C#
public event EventHandler<RadRoutedEventArgs> Selected

SelectionChanged

SelectionChangedEventHandler

Occurs after the value of the SelectedItems property of a tree is changed.

C#
public event SelectionChangedEventHandler SelectionChanged

Occurs when a child TreeView item has been unchecked.

C#
public event EventHandler<RadRoutedEventArgs> Unchecked

Occurs when a child tree view item has been unselected.

C#
public event EventHandler<RadRoutedEventArgs> Unselected
In this article
DefinitionConstructorsRadTreeView()FieldsAutoScrollToSelectedItemPropertyBringIntoViewModePropertyCheckedItemsPropertyDragEndedEventDragOverTreeEventDragStartedEventDropExpandDelayPropertyExpanderStylePropertyImagesBaseDirPropertyIsDragDropEnabledPropertyIsDragPreviewEnabledPropertyIsDragTooltipEnabledPropertyIsDropPreviewLineEnabledPropertyIsEditablePropertyIsExpandOnDblClickEnabledPropertyIsExpandOnSingleClickEnabledPropertyIsLineEnabledPropertyIsLoadOnDemandEnabledPropertyIsOptionElementsEnabledPropertyIsRootLinesEnabledPropertyIsSingleExpandPathPropertyIsTriStateModePropertyItemEditTemplatePropertyItemEditTemplateSelectorPropertyItemsIndentPropertyPathSeparatorPropertyPerformSelectionOnMouseUpPropertyPreviewDragEndedEventPreviewDragStartedEventPreviewSelectionChangedEventSelectedContainerPropertySelectedItemPropertySelectedItemsPropertySelectedValuePathPropertySelectedValuePropertySelectionChangedEventSelectionModePropertyTextDropAfterPropertyTextDropBeforePropertyTextDropInPropertyTextDropRootPropertyTextSearchModePropertyPropertiesAutoScrollToSelectedItemBringIntoViewModeCheckedItemsDropExpandDelayExpanderStyleImagesBaseDirIsDragDropEnabledIsDragPreviewEnabledIsDragTooltipEnabledIsDropPreviewLineEnabledIsEditableIsEditingIsExpandOnDblClickEnabledIsExpandOnSingleClickEnabledIsLineEnabledIsLoadOnDemandEnabledIsOptionElementsEnabledIsRootLinesEnabledIsSingleExpandPathIsTriStateModeIsVirtualizingItemEditTemplateItemEditTemplateSelectorItemsIndentPathSeparatorPerformSelectionOnMouseUpScrollViewerSelectedContainerSelectedItemSelectedItemsSelectedValueSelectedValuePathSelectionModeTextDropAfterTextDropBeforeTextDropInTextDropRootTextSearchModeMethodsAddItemByPath(string, string)AddItemByPath(string)AddItemsByPath(string, string)BringIndexIntoView(int, Point)BringIndexIntoView(int)BringItemIntoView(object, Point)BringItemIntoView(object)BringPathIntoView(string, Point)BringPathIntoView(string)ChangeVisualState(bool)ClearContainerForItemOverride(DependencyObject, object)CollapseAll()ContainerFromItemRecursive(object)CreateDragVisualContent(IList<object>)ExpandAll()ExpandItemByPath(string, string)ExpandItemByPath(string)GetContainerForItemOverride()GetItemByPath(string, string)GetItemByPath(string)HideBetweenItemsDragCue()IsItemItsOwnContainerOverride(object)OnApplyTemplate()OnCreateAutomationPeer()OnDragEnded(RadTreeViewDragEndedEventArgs)OnDragEnter(DragEventArgs)OnDragLeave(DragEventArgs)OnDragOverTree(DragOverTreeEventArgs)OnDragStarted(RadTreeViewDragEventArgs)OnDrop(DragEventArgs)OnExpanderStyleChanged(Style, Style)OnGotFocus(object, RoutedEventArgs)OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)OnInitialized(EventArgs)OnItemPrepared(RadTreeViewItemPreparedEventArgs)OnItemsChanged(NotifyCollectionChangedEventArgs)OnLostFocus(object, RoutedEventArgs)OnLostKeyboardFocus(KeyboardFocusChangedEventArgs)OnMouseLeftButtonDown(MouseButtonEventArgs)OnMouseWheel(MouseWheelEventArgs)OnPreviewDragEnded(RadTreeViewDragEndedEventArgs)OnPreviewDragStarted(RadTreeViewDragEventArgs)OnPreviewSelectionChanged(SelectionChangedEventArgs)OnSelectionChanged(SelectionChangedEventArgs)OnTextInput(TextCompositionEventArgs)PrepareContainerForItemOverride(DependencyObject, object)ResetTheme()SelectItemByPath(string, string)SelectItemByPath(string)ShowBetweenItemsDragCue(RadTreeViewItem)UpdateDropPreviewLine(RadTreeViewItem, DropPosition)EventsCheckedCollapsedDragEndedDragOverTreeDragStartedEditCanceledEditedEditStartedExpandedItemClickItemDoubleClickItemPreparedLoadOnDemandPreviewCheckedPreviewCollapsedPreviewDragEndedPreviewDragStartedPreviewEditCanceledPreviewEditedPreviewEditStartedPreviewExpandedPreviewSelectedPreviewSelectionChangedPreviewUncheckedPreviewUnselectedSelectedSelectionChangedUncheckedUnselected
Not finding the help you need?
Contact Support