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

Represents an item in the RadTreeView control.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
public class RadTreeViewItem : EditableHeaderedItemsControl, ICommandSource

Inheritance: objectEditableHeaderedItemsControlRadTreeViewItem

Derived Classes: FileBrowserTreeViewItemRadPanelBarItem

Implements: ICommandSource

Inherited Members EditableHeaderedItemsControl.EditedEventEditableHeaderedItemsControl.EditCanceledEventEditableHeaderedItemsControl.PreviewEditCanceledEventEditableHeaderedItemsControl.PreviewEditedEventEditableHeaderedItemsControl.PreviewEditStartedEventEditableHeaderedItemsControl.EditStartedEventEditableHeaderedItemsControl.PreviewEditorPrepareEventEditableHeaderedItemsControl.EditorPrepareEventEditableHeaderedItemsControl.IsInEditModePropertyEditableHeaderedItemsControl.HeaderEditTemplateSelectorPropertyEditableHeaderedItemsControl.HeaderEditTemplatePropertyEditableHeaderedItemsControl.IsEditablePropertyEditableHeaderedItemsControl.AddEditStartedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.RemoveEditStartedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.AddEditCanceledHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.RemoveEditCanceledHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.AddEditedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.RemoveEditedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.AddPreviewEditStartedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.RemovePreviewEditStartedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.AddPreviewEditedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.RemovePreviewEditedHandler(UIElement, RadTreeViewItemEditedEventHandler)EditableHeaderedItemsControl.AddPreviewEditorPrepareHandler(UIElement, EditorPrepareEventHandler)EditableHeaderedItemsControl.RemovePreviewEditorPrepareHandler(UIElement, EditorPrepareEventHandler)EditableHeaderedItemsControl.AddEditorPrepareHandler(UIElement, EditorPrepareEventHandler)EditableHeaderedItemsControl.RemoveEditorPrepareHandler(UIElement, EditorPrepareEventHandler)EditableHeaderedItemsControl.PrepareEditor(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnEditorPrepare(EditorPrepareEventArgs)EditableHeaderedItemsControl.GetEditValue()EditableHeaderedItemsControl.SetEditValue(object)EditableHeaderedItemsControl.OnPreviewEdited(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnEdited(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnEditCanceled(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnPreviewEditCanceled(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnEditStarted(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnPreviewEditStarted(RadTreeViewItemEditedEventArgs)EditableHeaderedItemsControl.OnHeaderEditTemplateChanged(DataTemplate, DataTemplate)EditableHeaderedItemsControl.OnHeaderEditTemplateSelectorChanged(DataTemplateSelector, DataTemplateSelector)EditableHeaderedItemsControl.IsInEditModeEditableHeaderedItemsControl.HeaderEditTemplateEditableHeaderedItemsControl.HeaderEditTemplateSelectorEditableHeaderedItemsControl.IsEditableEditableHeaderedItemsControl.HeaderEditPresenterElementEditableHeaderedItemsControl.EditStartedEditableHeaderedItemsControl.PreviewEditedEditableHeaderedItemsControl.EditCanceledEditableHeaderedItemsControl.PreviewEditCanceledEditableHeaderedItemsControl.EditedEditableHeaderedItemsControl.PreviewEditStartedEditableHeaderedItemsControl.PreviewEditorPrepareEditableHeaderedItemsControl.EditorPrepare...

Constructors

Initializes a new instance of the RadTreeViewItem class.

C#
public RadTreeViewItem()

Fields

CheckedEvent

RoutedEvent

Identifies the Checked routed event.

C#
public static readonly RoutedEvent CheckedEvent

CheckStateProperty

DependencyProperty

Identifies the CheckState dependency property.

C#
public static readonly DependencyProperty CheckStateProperty

ClickEvent

RoutedEvent

Identifies the Click routed event.

C#
public static readonly RoutedEvent ClickEvent

CollapsedEvent

RoutedEvent

Identifies the Collapsed routed event.

C#
public static readonly RoutedEvent CollapsedEvent

Identifies the CommandExecutionTrigger dependency property.

C#
public static readonly DependencyProperty CommandExecutionTriggerProperty

CommandParameterProperty

DependencyProperty

Identifies the CommandParameter dependency property.

C#
public static readonly DependencyProperty CommandParameterProperty

CommandProperty

DependencyProperty

Identifies the ClickCommand dependency property.

C#
public static readonly DependencyProperty CommandProperty

CommandTargetProperty

DependencyProperty

Identifies the CommandTarget dependency property.

C#
public static readonly DependencyProperty CommandTargetProperty

DefaultImageSrcProperty

DependencyProperty

Identifies the DefaultImageSrc dependency property.

C#
public static readonly DependencyProperty DefaultImageSrcProperty

DoubleClickEvent

RoutedEvent

Identifies the DoubleClick routed event.

C#
public static readonly RoutedEvent DoubleClickEvent

DropPositionProperty

DependencyProperty

Identifies the DropPosition property.

C#
public static readonly DependencyProperty DropPositionProperty

ExpandedEvent

RoutedEvent

Identifies the Expanded routed event.

C#
public static readonly RoutedEvent ExpandedEvent

ExpandedImageSrcProperty

DependencyProperty

Identifies the ExpandedImageSrc dependency property.

C#
public static readonly DependencyProperty ExpandedImageSrcProperty

Identifies the ExpanderButtonMinWidth dependency property.

C#
public static readonly DependencyProperty ExpanderButtonMinWidthProperty

ExpanderStyleProperty

DependencyProperty

Identifies the ExpanderStyle dependency property.

C#
public static readonly DependencyProperty ExpanderStyleProperty

IsCheckBoxEnabledProperty

DependencyProperty

Identifies the IsCheckBoxEnabled dependency property.

C#
public static readonly DependencyProperty IsCheckBoxEnabledProperty

IsCheckedProperty

DependencyProperty

Identifies the IsChecked property.

C#
public static readonly DependencyProperty IsCheckedProperty

IsDragOverProperty

DependencyProperty

Identifies the IsDragOver property.

C#
public static readonly DependencyProperty IsDragOverProperty

IsDropAllowedProperty

DependencyProperty

Identifies the IsDropAllowed dependency property.

C#
public static readonly DependencyProperty IsDropAllowedProperty

IsExpandedProperty

DependencyProperty

Identifies the IsExpanded dependency property.

C#
public static readonly DependencyProperty IsExpandedProperty

IsLoadingOnDemandProperty

DependencyProperty

Identifies the IsLoadingOnDemand dependency property.

C#
public static readonly DependencyProperty IsLoadingOnDemandProperty

Identifies the IsLoadOnDemandEnabled dependency property.

C#
public static readonly DependencyProperty IsLoadOnDemandEnabledProperty

IsMouseOverHeaderProperty

DependencyProperty

Identifies the IsMouseOverHeader dependency property.

C#
public static readonly DependencyProperty IsMouseOverHeaderProperty

IsSelectableProperty

DependencyProperty

Identifies the IsSelectable dependency property.

C#
public static readonly DependencyProperty IsSelectableProperty

IsSelectedProperty

DependencyProperty

Identifies the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

IsSelectionActiveProperty

DependencyProperty

Identifies the IsSelectionActive dependency property.

C#
public static readonly DependencyProperty IsSelectionActiveProperty

IsSelectionActivePropertyKey

DependencyPropertyKey

Identifies the IsSelectionActivePropertyKey dependency property.

C#
public static readonly DependencyPropertyKey IsSelectionActivePropertyKey

ItemVisibilityProperty

DependencyProperty

Identifies the ItemVisibility dependency property.

C#
public static readonly DependencyProperty ItemVisibilityProperty

Identifies the LoadOnDemand routed event.

C#
public static readonly RoutedEvent LoadOnDemandEvent

OptionTypeProperty

DependencyProperty

Identifies the OptionTypeProperty dependency property.

C#
public static readonly DependencyProperty OptionTypeProperty

Identifies the PreviewChecked routed event.

C#
public static readonly RoutedEvent PreviewCheckedEvent

Identifies the PreviewCollapsed routed event.

C#
public static readonly RoutedEvent PreviewCollapsedEvent

Identifies the PreviewExpanded routed event.

C#
public static readonly RoutedEvent PreviewExpandedEvent

Identifies the PreviewSelected routed event.

C#
public static readonly RoutedEvent PreviewSelectedEvent

Identifies the PreviewUnchecked routed event.

C#
public static readonly RoutedEvent PreviewUncheckedEvent

Identifies the PreviewUnselected routed event.

C#
public static readonly RoutedEvent PreviewUnselectedEvent

SelectedEvent

RoutedEvent

Identifies the Selected routed event.

C#
public static readonly RoutedEvent SelectedEvent

SelectedImageSrcProperty

DependencyProperty

Identifies the SelectedImageSrc dependency property.

C#
public static readonly DependencyProperty SelectedImageSrcProperty

UncheckedEvent

RoutedEvent

Identifies the Unchecked routed event.

C#
public static readonly RoutedEvent UncheckedEvent

UnselectedEvent

RoutedEvent

Identifies the Unselected routed event.

C#
public static readonly RoutedEvent UnselectedEvent

Properties

CheckState

ToggleState

Gets or sets the toggle state of the item - On, Off or Indeterminate.

C#
public ToggleState CheckState { get; set; }

Gets or sets the command for Click event of the RadTreeViewItem.

C#
public ICommand Command { get; set; }
Property Value:

The command.

Gets or sets a value indicating when the Command must be executed.

C#
public CommandExecutionTrigger CommandExecutionTrigger { get; set; }

Gets or sets the command parameter of the RadTreeViewItem.

C#
public object CommandParameter { get; set; }
Property Value:

The command parameter.

CommandTarget

IInputElement

Gets or sets the command target of the RadTreeViewItem when using routed command.

C#
public IInputElement CommandTarget { get; set; }
Property Value:

The command target.

Gets or sets the image that the TreeViewItem will display by default.

C#
public virtual object DefaultImageSrc { get; set; }

Gets or sets the DropPosition for the current drop (Before, Inside, After). Setting this property only makes sense in a DragDrop handler.

C#
public DropPosition DropPosition { get; set; }

Gets or sets the image that the TreeViewItem will display when it is expanded.

C#
public object ExpandedImageSrc { get; set; }

Gets or sets a value indicating the min width of the grid which hosts the expander button of the RadTreeViewItem.

C#
public double ExpanderButtonMinWidth { get; set; }

Gets or sets the style for the item's expand arrow.

C#
public Style ExpanderStyle { get; set; }

Gets the path from the root tree item to the current tree item delimited with the PathSeparator specified by RadTreeView.

C#
[Browsable(false)]
public string FullPath { get; }

Gets the position of the tree item in the tree item collection.

C#
[Browsable(false)]
public int Index { get; }

Gets whether the tree item will display a check box.

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

Gets or sets a value indicating whether the TreeView item is checked. Null means 'indeterminate'.

C#
public bool? IsChecked { get; set; }

Gets or sets a value indicating whether an item is being dragged over the TreeViewItem.

C#
[Browsable(false)]
public bool IsDragOver { get; set; }

Gets or sets a value indicating whether the tree item can accept data that the user drags onto it.

C#
public bool IsDropAllowed { get; set; }

Gets or sets a value indicating whether the TreeViewItem is in the expanded state.

C#
public bool IsExpanded { get; set; }

Gets a value indicating whether this item is in the selection path.

C#
public bool IsInSelectedPath { get; }

Gets a value indicating whether the tree item is in ScrollViewer viewport.

C#
public bool IsInViewport { get; }

Gets or sets whether the tree item is in loading on demand state.

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

If the LoadOnDemand event is raised and there are no items to add, use IsLoadingOnDemand property and set it to false to stop the loading animation.

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 a value indicating whether the mouse cursor is over the item header.

C#
public bool IsMouseOverHeader { get; }

Gets a value if the item is root item.

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

Gets or sets a value indicating whether the tree item can be selected. It can be selected via Mouse, keyboard or by using IsSelected property. However, this property does not prevent the selection via SelectedItem or SelectedItems property of RadTreeView. These properties accept object(s) and might be evaluated when the corresponding containers are not generated yet.

C#
public bool IsSelectable { get; set; }

Gets or sets a value indicating whether the tree item is in selected state.

C#
public bool IsSelected { get; set; }

Gets whether the tree item selection is active - e.g. the item is selected and the TreeView is focused.

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

Gets the data item associated to the RadTreeViewItem.

C#
public object Item { get; }
Remarks:

Use this property to get the data item, that is associated with this RadTreeViewItem when the RadTreeView is populated using the ItemsSource property.

ItemVisibility

Visibility

Gets or sets a value indicating when the item should be visible or not.

C#
public Visibility ItemVisibility { get; set; }

Gets the zero-based depth of the tree item in the RadTreeView tree.

C#
[Browsable(false)]
public int Level { get; }

Gets the next available item. Used for traversal of the tree view.

C#
[Browsable(false)]
public RadTreeViewItem NextItem { get; }

Gets the next sibling tree item.

C#
[Browsable(false)]
public RadTreeViewItem NextSiblingItem { get; }

Gets or sets the type of the option element that the item displays.

C#
public OptionListType OptionType { get; set; }

Gets the parent tree view item of the current tree view item.

C#
[Browsable(false)]
public RadTreeViewItem ParentItem { get; }

Gets the parent tree view associated with the current tree view item.

C#
[Browsable(false)]
public RadTreeView ParentTreeView { get; }

Gets the previous available item. Used for traversal of the tree view.

C#
[Browsable(false)]
public RadTreeViewItem PreviousItem { get; }

Gets the previous sibling tree item.

C#
[Browsable(false)]
public RadTreeViewItem PreviousSiblingItem { get; }

Gets the root parent item for this instance.

C#
public RadTreeViewItem RootItem { get; }

Gets or sets the image that the TreeViewItem displays when it is selected.

C#
public object SelectedImageSrc { get; set; }

Methods

Attempts to start editing the item.

C#
public override bool BeginEdit()
Returns:

bool

Returns true if successful, false otherwise.

Overrides: EditableHeaderedItemsControl.BeginEdit()

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)
Parameters:itemobject

The item to be brought into view.

Cancels the edit.

C#
public override bool CancelEdit()
Returns:

bool

Overrides: EditableHeaderedItemsControl.CancelEdit()

Updates the visual state of the control.

C#
protected override void ChangeVisualState(bool useTransitions)
Parameters:useTransitionsbool

Indicates whether transitions should be used.

Overrides: EditableHeaderedItemsControl.ChangeVisualState(bool)

When overridden in a derived class, undoes the effects of the method.

C#
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

The container element.

itemobject

The Item.

Collapses the item and its child items recursively.

C#
public void CollapseAll()

Tries to Commit edit.

C#
public override bool CommitEdit()
Returns:

bool

Returns true if successful, false otherwise.

Overrides: EditableHeaderedItemsControl.CommitEdit()

Checks if the item has a particular item in its collection.

C#
public bool Contains(RadTreeViewItem item)
Parameters:itemRadTreeViewItem

The item to be searched.

Returns:

bool

Boolean value indicating the item to be searched.

Ensures that a given item is displayed.

C#
public void EnsureVisible()

Expands the item and its child items recursively.

C#
public void ExpandAll()
Remarks:

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

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

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Gets a value indicating whether this item is rendered before the passed item.

C#
public bool IsBefore(RadTreeViewItem item)
Parameters:itemRadTreeViewItemReturns:

bool

Gets whether the the collection of dragged items can be dropped on the destination item.

C#
public virtual bool IsDropPossible(IEnumerable draggedItems)
Parameters:draggedItemsIEnumerable

A collection of items that the user is dragging.

Returns:

bool

True if a drop is possible, false otherwise.

Remarks:

The method makes sure that parents will not be dropped in their children and that no items will be dropped in a destination which has its IsDropAllowed property set to false.

This method is not meant to implement business or application logic. The DragDrop events can be handled to implement additional validation / logic.

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

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

The item to check.

Returns:

bool

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

Measures the size of the control.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSizeReturns:

Size

Called to apply the template to the RadTreeViewItem. This method is responsible for performing any necessary operations when the control's visual tree is generated.

C#
public override void OnApplyTemplate()

Overrides: EditableHeaderedItemsControl.OnApplyTemplate()

Remarks:

This method is typically overridden in derived classes to implement custom template application logic.

Raises the event.

C#
protected virtual void OnChecked(RadTreeViewCheckEventArgs e)
Parameters:eRadTreeViewCheckEventArgs

The RadTreeViewCheckEventArgs instance containing the event data.

Raises the event and tries to execute the .

C#
protected virtual bool? OnClick(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgsReturns:

bool?

True if the command is executed; False if the command can not be executed; Null when command is not set or suppressing notifications.

Raises the event.

C#
protected virtual void OnCollapsed(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

Returns class-specific AutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Raises the event and tries to execute the .

C#
protected virtual bool? OnDoubleClick(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgsReturns:

bool?

True if the command is executed; False if the command can not be executed; Null when command is not set or suppressing notifications.

Raise the event.

C#
protected virtual void OnExpanded(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

Called before the event occurs.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The data for the event.

Called when the property of a changes.

C#
protected override void OnHeaderChanged(object oldHeader, object newHeader)
Parameters:oldHeaderobject

Old value of the property.

newHeaderobject

New value of the property.

Called when KeyDown event occurs on the Header Edit Element.

C#
protected virtual void OnHeaderEditElementKeyDown(object sender, KeyEventArgs e)
Parameters:senderobject

The sender.

eKeyEventArgs

The KeyEventArgs instance containing the event data.

Raises the event. This method is invoked whenever is set to true internally.

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

The RoutedEventArgs that contains the event data.

The handler for the IsEnabledChanged event is fired.

C#
protected virtual void OnIsEnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
Parameters:senderobject

The sender.

eDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the value of the IsExpanded property changes.

C#
protected virtual void OnIsExpandedChanged(bool oldValue, bool newValue)
Parameters:oldValuebool

The old value of the IsExpanded property.

newValuebool

The new value of the IsExpanded property.

Called when the value of the IsInEditMode property changes.

C#
protected override void OnIsInEditModeChanged(bool oldValue, bool newValue)
Parameters:oldValueboolnewValuebool

Overrides: EditableHeaderedItemsControl.OnIsInEditModeChanged(bool, bool)

Invoked when the Items property changes.

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

Called before the event occurs.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The data for the event.

Raises the event.

C#
protected virtual void OnLoadOnDemand(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Called before the event occurs.

C#
protected override void OnLostFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The data for the event.

Raises the event.

C#
protected virtual bool OnPreviewChecked(RadTreeViewCheckEventArgs e)
Parameters:eRadTreeViewCheckEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnPreviewCollapsed(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Prepares the editor for the TreeViewItem. This override binds the default TextBox to the property that is edited if necessary.

C#
protected override void OnPreviewEditorPrepare(EditorPrepareEventArgs e)
Parameters:eEditorPrepareEventArgs

The event arguments that will be passed to the PreviewEditorPrepare in the base implementation.

Overrides: EditableHeaderedItemsControl.OnPreviewEditorPrepare(EditorPrepareEventArgs)

Raises the event.

C#
protected virtual bool OnPreviewExpanded(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnPreviewSelected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnPreviewUnchecked(RadTreeViewCheckEventArgs e)
Parameters:eRadTreeViewCheckEventArgs

The EventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual bool OnPreviewUnselected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Returns:

bool

Raises the event.

C#
protected virtual void OnSelected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnUnchecked(RadTreeViewCheckEventArgs e)
Parameters:eRadTreeViewCheckEventArgs

The RadTreeViewCheckEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnUnselected(RadRoutedEventArgs e)
Parameters:eRadRoutedEventArgs

The RadRoutedEventArgs instance containing the event data.

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Return item text value.

C#
public override string ToString()
Returns:

string

The text of the item.

Events

Occurs when the item is checked.

C#
public event EventHandler<RadRoutedEventArgs> Checked

Occurs after the tree item is clicked.

C#
public event EventHandler<RadRoutedEventArgs> Click

Occurs after the tree item is collapsed.

C#
public event EventHandler<RadRoutedEventArgs> Collapsed

Occurs after the tree item is double clicked.

C#
public event EventHandler<RadRoutedEventArgs> DoubleClick

Occurs after the tree item is expanded.

C#
public event EventHandler<RadRoutedEventArgs> Expanded

Occurs when the tree item should load its child items on demand.

C#
public event EventHandler<RadRoutedEventArgs> LoadOnDemand

Occurs before the tree item is checked.

C#
public event EventHandler<RadRoutedEventArgs> PreviewChecked

Occurs before an item is collapsed.

C#
public event EventHandler<RadRoutedEventArgs> PreviewCollapsed

Occurs before an item is expanded.

C#
public event EventHandler<RadRoutedEventArgs> PreviewExpanded

Occurs before the tree item is selected.

C#
public event EventHandler<RadRoutedEventArgs> PreviewSelected

Occurs before the tree item is unchecked.

C#
public event EventHandler<RadRoutedEventArgs> PreviewUnchecked

Occurs before an item is unselected.

C#
public event EventHandler<RadRoutedEventArgs> PreviewUnselected

Occurs after the tree item is selected. For more information about handling events, see also PreviewSelected.

C#
public event EventHandler<RadRoutedEventArgs> Selected

Occurs when the item is unchecked.

C#
public event EventHandler<RadRoutedEventArgs> Unchecked

Occurs after the tree item is unselected.

C#
public event EventHandler<RadRoutedEventArgs> Unselected
In this article
DefinitionConstructorsRadTreeViewItem()FieldsCheckedEventCheckStatePropertyClickEventCollapsedEventCommandExecutionTriggerPropertyCommandParameterPropertyCommandPropertyCommandTargetPropertyDefaultImageSrcPropertyDoubleClickEventDropPositionPropertyExpandedEventExpandedImageSrcPropertyExpanderButtonMinWidthPropertyExpanderStylePropertyIsCheckBoxEnabledPropertyIsCheckedPropertyIsDragOverPropertyIsDropAllowedPropertyIsExpandedPropertyIsLoadingOnDemandPropertyIsLoadOnDemandEnabledPropertyIsMouseOverHeaderPropertyIsSelectablePropertyIsSelectedPropertyIsSelectionActivePropertyIsSelectionActivePropertyKeyItemVisibilityPropertyLoadOnDemandEventOptionTypePropertyPreviewCheckedEventPreviewCollapsedEventPreviewExpandedEventPreviewSelectedEventPreviewUncheckedEventPreviewUnselectedEventSelectedEventSelectedImageSrcPropertyUncheckedEventUnselectedEventPropertiesCheckStateCommandCommandExecutionTriggerCommandParameterCommandTargetDefaultImageSrcDropPositionExpandedImageSrcExpanderButtonMinWidthExpanderStyleFullPathIndexIsCheckBoxEnabledIsCheckedIsDragOverIsDropAllowedIsExpandedIsInSelectedPathIsInViewportIsLoadingOnDemandIsLoadOnDemandEnabledIsMouseOverHeaderIsRootItemIsSelectableIsSelectedIsSelectionActiveItemItemVisibilityLevelNextItemNextSiblingItemOptionTypeParentItemParentTreeViewPreviousItemPreviousSiblingItemRootItemSelectedImageSrcMethodsBeginEdit()BringIndexIntoView(int)BringItemIntoView(object)CancelEdit()ChangeVisualState(bool)ClearContainerForItemOverride(DependencyObject, object)CollapseAll()CommitEdit()Contains(RadTreeViewItem)EnsureVisible()ExpandAll()GetContainerForItemOverride()IsBefore(RadTreeViewItem)IsDropPossible(IEnumerable)IsItemItsOwnContainerOverride(object)MeasureOverride(Size)OnApplyTemplate()OnChecked(RadTreeViewCheckEventArgs)OnClick(RadRoutedEventArgs)OnCollapsed(RadRoutedEventArgs)OnCreateAutomationPeer()OnDoubleClick(RadRoutedEventArgs)OnExpanded(RadRoutedEventArgs)OnGotFocus(RoutedEventArgs)OnHeaderChanged(object, object)OnHeaderEditElementKeyDown(object, KeyEventArgs)OnInitialized(EventArgs)OnIsEnabledChanged(object, DependencyPropertyChangedEventArgs)OnIsExpandedChanged(bool, bool)OnIsInEditModeChanged(bool, bool)OnItemsChanged(NotifyCollectionChangedEventArgs)OnKeyDown(KeyEventArgs)OnLoadOnDemand(RadRoutedEventArgs)OnLostFocus(RoutedEventArgs)OnPreviewChecked(RadTreeViewCheckEventArgs)OnPreviewCollapsed(RadRoutedEventArgs)OnPreviewEditorPrepare(EditorPrepareEventArgs)OnPreviewExpanded(RadRoutedEventArgs)OnPreviewSelected(RadRoutedEventArgs)OnPreviewUnchecked(RadTreeViewCheckEventArgs)OnPreviewUnselected(RadRoutedEventArgs)OnSelected(RadRoutedEventArgs)OnUnchecked(RadTreeViewCheckEventArgs)OnUnselected(RadRoutedEventArgs)PrepareContainerForItemOverride(DependencyObject, object)ToString()EventsCheckedClickCollapsedDoubleClickExpandedLoadOnDemandPreviewCheckedPreviewCollapsedPreviewExpandedPreviewSelectedPreviewUncheckedPreviewUnselectedSelectedUncheckedUnselected
Not finding the help you need?
Contact Support