Class
RadTreeViewItem

Represents the Silverlight RadTreeViewItem control wrapper.

Definition

Namespace:Telerik.WebAii.Controls.Xaml

Assembly:Telerik.WebAii.Controls.Xaml.dll

Syntax:

cs-api-definition
public class RadTreeViewItem : ItemsControl, IAutomationPeer, IPeerConverter, IRadTreeViewItem, IControl, IFrameworkElement, ITargetElement

Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlItemsControlRadTreeViewItem

Implements: IAutomationPeerIControlIFrameworkElementIPeerConverterIRadTreeViewItemITargetElement

Inherited Members ItemsControl.DisplayMemberPathPropertyItemsControl.GetRealType()ItemsControl.DisplayMemberPathControl.IsTabStopPropertyControl.TabIndexPropertyControl.TabNavigationPropertyControl.PaddingPropertyControl.HorizontalContentAlignmentPropertyControl.VerticalContentAlignmentPropertyControl.BackgroundPropertyControl.BorderBrushPropertyControl.BorderThicknessPropertyControl.FontSizePropertyControl.ForegroundPropertyControl.IsEnabledPropertyControl.FontFamilyPropertyControl.FontStretchPropertyControl.FontStylePropertyControl.FontWeightPropertyControl.IsTabStopControl.TabIndexControl.TabNavigationControl.PaddingControl.HorizontalContentAlignmentControl.VerticalContentAlignmentControl.BackgroundControl.BorderBrushControl.BorderThicknessControl.FontSizeControl.ForegroundControl.IsEnabledControl.FontFamilyControl.FontStretchControl.FontStyleControl.FontWeightSilverlightTestElement.UseLayoutRoundingPropertySilverlightTestElement.UseLayoutRoundingFrameworkElement.ActualWidthPropertyFrameworkElement.ActualHeightPropertyFrameworkElement.WidthPropertyFrameworkElement.HeightPropertyFrameworkElement.MinWidthPropertyFrameworkElement.MaxWidthPropertyFrameworkElement.MinHeightPropertyFrameworkElement.MaxHeightPropertyFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.VerticalAlignmentPropertyFrameworkElement.MarginPropertyFrameworkElement.DesiredSizePropertyFrameworkElement.RenderSizePropertyFrameworkElement.NamePropertyFrameworkElement.TagPropertyFrameworkElement.DataContextPropertyFrameworkElement.OpacityPropertyFrameworkElement.ClipPropertyFrameworkElement.RenderTransformPropertyFrameworkElement.OpacityMaskPropertyFrameworkElement.RenderTransformOriginPropertyFrameworkElement.IsHitTestVisiblePropertyFrameworkElement.VisibilityPropertyFrameworkElement.GetIdentifier(out string, out string)FrameworkElement.IsChild(FrameworkElement)FrameworkElement.GetChildTagIndex(FrameworkElement)FrameworkElement.InitializeMappings(MappingsCollection)FrameworkElement.As<T>()FrameworkElement.CastAs<T>()FrameworkElement.SetProxy(bool)FrameworkElement.SetUid(string)FrameworkElement.SetFindInfo(VisualFindInfo)FrameworkElement.SetXamlTag(string)FrameworkElement.KeyPress(Keys, int, int, int)FrameworkElement.GetRectangle()FrameworkElement.GetRectangle(FrameworkElement)FrameworkElement.GetIntRectangle()FrameworkElement.IsHitTest()FrameworkElement.IsHitTest(bool)FrameworkElement.IsHitTest(FrameworkElement, bool)FrameworkElement.Highlight()FrameworkElement.Highlight(bool)FrameworkElement.Parent()FrameworkElement.Parent<T>()FrameworkElement.Parent(string)FrameworkElement.Parent(string, bool)FrameworkElement.GetNextSibling()FrameworkElement.GetPrevSibling()FrameworkElement.NextSibling(string)FrameworkElement.NextSibling<T>()FrameworkElement.PreviousSibling(string)FrameworkElement.PreviousSibling<T>()FrameworkElement.AnySibling<T>()FrameworkElement.AnySibling(string)FrameworkElement.GetScreenRectangle()FrameworkElement.ScrollToVisible()FrameworkElement.ScrollToVisible(ScrollToVisibleType)FrameworkElement.EnsureClickable()FrameworkElement.ToXml()FrameworkElement.Refresh()FrameworkElement.Equals(object)FrameworkElement.GetHashCode()FrameworkElement.GetProperties()FrameworkElement.GetAttachedProperty<T>(string, string)FrameworkElement.SetAttachedProperty<T>(string, string, T)FrameworkElement.SetFocus()FrameworkElement.ValidateMouseLocationIfNeeded(Point)FrameworkElement.GetStringPresentation()FrameworkElement.ToRealObject()FrameworkElement.FromRealObject(object)FrameworkElement.ValidateType(Type, string)FrameworkElement.GetKnownControlTypes(TechnologyType)FrameworkElement.RegisterElement(Type, string)FrameworkElement.InitKnownWpfControlTypes()FrameworkElement.InitKnownSilverlightControlTypes()FrameworkElement.InitKnownXamlControlTypes(Type)FrameworkElement.GetControlTypeFromInterface(Type)FrameworkElement.Match(IFindExpression)FrameworkElement.SetDepth(int)FrameworkElement.AddChildNode(ITargetElement)FrameworkElement.SetClosingTag(ITargetElement)FrameworkElement.GetChildren()FrameworkElement.GetParent()FrameworkElement.GetHostParent()FrameworkElement.SetParent(ITargetElement)FrameworkElement.GetUniqueHashCode()FrameworkElement.ToString()FrameworkElement.Capture()FrameworkElement.CaptureImage()FrameworkElement.GetProperty<T>(string)FrameworkElement.GetPropertyTypeSafe(string)FrameworkElement.GetAutomationProperty(string)FrameworkElement.SetProperty(string, object)FrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.WidthFrameworkElement.HeightFrameworkElement.MinWidthFrameworkElement.MaxWidthFrameworkElement.MinHeightFrameworkElement.MaxHeightFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentFrameworkElement.MarginFrameworkElement.DesiredSizeFrameworkElement.RenderSizeFrameworkElement.NameFrameworkElement.OpacityFrameworkElement.ClipFrameworkElement.RenderTransformFrameworkElement.OpacityMaskFrameworkElement.RenderTransformOriginFrameworkElement.IsHitTestVisibleFrameworkElement.VisibilityFrameworkElement.UidFrameworkElement.MappingsFrameworkElement.AutomationIdFrameworkElement.XamlTagBaseFrameworkElement.TextFrameworkElement.TextBlockContentFrameworkElement.TextLiteralContentFrameworkElement.UserFrameworkElement.XamlTagFrameworkElement.WaitFrameworkElement.FindFrameworkElement.ApplicationFrameworkElement.AbsoluteTagIndexFrameworkElement.TagNameIndexFrameworkElement.AbsoluteSiblingTagIndexFrameworkElement.EnableValidateMouseLocationFrameworkElement.ToolTipTextFrameworkElement.ComputedVisibilityFrameworkElement.IsVisibleFrameworkElement.ChildrenFrameworkElement.TechnologyTypeFrameworkElement.DepthFrameworkElement.IsTestRegionFrameworkElement.ParsedElementFrameworkElement.HostAutomationObject<FrameworkElement>.GetProperty(AutomationProperty)AutomationObject<FrameworkElement>.GetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.SetProperty(AutomationProperty, object)AutomationObject<FrameworkElement>.InvokeMethod(AutomationMethod, params object[])AutomationObject<FrameworkElement>.InvokeMethod(string, params object[])AutomationObject<FrameworkElement>.Serialize()AutomationObject<FrameworkElement>.Deserialize(string)AutomationObject<FrameworkElement>.ReferenceAutomationObject<FrameworkElement>.PropertyBag

Constructors

RadTreeViewItem()

Initializes a new instance of the RadTreeViewItem class.

Declaration

cs-api-definition
public RadTreeViewItem()

Properties

CheckBoxElement

The tree view item built-in check box element.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. Please use CheckBoxFrameworkElement instead.")]
public CheckBox CheckBoxElement { get; }

Property Value

CheckBox

CheckBoxFrameworkElement

The tree view item built-in check box element.

Declaration

cs-api-definition
public FrameworkElement CheckBoxFrameworkElement { get; }

Property Value

FrameworkElement

Implements IRadTreeViewItem.CheckBoxFrameworkElement

HeaderRow

Get the header Grid holding the node text and the expander toggle button.

Declaration

cs-api-definition
public Grid HeaderRow { get; }

Property Value

Grid

HeaderTextBlock

Gets the tree view item header text box.

Declaration

cs-api-definition
public TextBlock HeaderTextBlock { get; }

Property Value

TextBlock

IsChecked

Get whether the node check box or radio button is checked.

Declaration

cs-api-definition
public bool? IsChecked { get; }

Property Value

bool?

Exceptions

InvalidOperationException

Thrown if the TreeView is not configured with 'OptionsElements' setting.

IsExpanded

Gets whether the TreeViewItem is expanded.

Declaration

cs-api-definition
public bool IsExpanded { get; }

Property Value

bool

Implements IRadTreeViewItem.IsExpanded

IsFocused

Gets whether the TreeViewItem is focused.

Declaration

cs-api-definition
public bool IsFocused { get; }

Property Value

bool

IsSelected

Gets whether the TreeViewItem is selected.

Declaration

cs-api-definition
public bool IsSelected { get; }

Property Value

bool

Implements IRadTreeViewItem.IsSelected

IsThreeState

Get whether the node check box or radio button is checked in three state mode (only if checked programmatically!).

Declaration

cs-api-definition
public bool IsThreeState { get; }

Property Value

bool

Exceptions

InvalidOperationException

Thrown if the TreeView is not configured with 'OptionsElements' setting.

ItemExpander

Gets the item expander button.

Declaration

cs-api-definition
public FrameworkElement ItemExpander { get; }

Property Value

FrameworkElement

Implements IRadTreeViewItem.ItemExpander

ItemIndex

Get the index of the item.

Declaration

cs-api-definition
public int ItemIndex { get; }

Property Value

int

Implements IRadTreeViewItem.ItemIndex

ItemText

Get the item text.

Declaration

cs-api-definition
public string ItemText { get; }

Property Value

string

Implements IRadTreeViewItem.ItemText

ItemsHost

Gets the items presenter element holding the sub items.

Declaration

cs-api-definition
protected ItemsPresenter ItemsHost { get; }

Property Value

ItemsPresenter

NodeElements

Get the list of RadTreeViewItem children.

Declaration

cs-api-definition
public IList<IRadTreeViewItem> NodeElements { get; }

Property Value

IList<IRadTreeViewItem>

Implements IRadTreeViewItem.NodeElements

Nodes

Get the list of RadTreeViewItem children.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. Please use NodeElements instead.")]
public IList<RadTreeViewItem> Nodes { get; }

Property Value

IList<RadTreeViewItem>

RadioButtonElement

The tree view item built-in radio button element.

Declaration

cs-api-definition
[Obsolete("The property is deprecated. Please use RadioButtonFrameworkElement instead.")]
public RadioButton RadioButtonElement { get; }

Property Value

RadioButton

RadioButtonFrameworkElement

The tree view item built-in radio button element.

Declaration

cs-api-definition
public FrameworkElement RadioButtonFrameworkElement { get; }

Property Value

FrameworkElement

Implements IRadTreeViewItem.RadioButtonFrameworkElement

Methods

AssignReference(AutomationReference)

Initialize the element.

Declaration

cs-api-definition
public override void AssignReference(AutomationReference reference)

Parameters

reference

AutomationReference

The automation reference of the element.

Overrides FrameworkElement.AssignReference(AutomationReference)

Implements IFrameworkElement.AssignReference(AutomationReference)

Check()

Check the node check box or radio button if enabled.

Declaration

cs-api-definition
public void Check()

Exceptions

InvalidOperationException

Thrown if the TreeView is not configured with 'OptionsElements' setting.

Implements IRadTreeViewItem.Check()

CheckNode(int)

Check a sub node with the given index and get back with updated (parent) node.

Declaration

cs-api-definition
public void CheckNode(int nodeIndex)

Parameters

nodeIndex

int

The index of the node to be checked.

Collapse()

Collapse this node.

Declaration

cs-api-definition
public void Collapse()

Exceptions

InvalidOperationException

Thrown if the node is not in expanded state.

DragToElement(FrameworkElement)

Drag the current node to the target element.

Declaration

cs-api-definition
public void DragToElement(FrameworkElement element)

Parameters

element

FrameworkElement

The target element to drag to.

DragToNode(RadTreeViewItem)

Drag the current node to the target one.

Declaration

cs-api-definition
public void DragToNode(RadTreeViewItem target)

Parameters

target

RadTreeViewItem

The target node to drag the current item to.

Expand()

Expand this node.

Declaration

cs-api-definition
public void Expand()

Exceptions

InvalidOperationException

Thrown if the node is not in collapsed state.

HeaderRightClick()

Simulates user right-click on the item header. Useful in integration with RadContextMenu.

Declaration

cs-api-definition
public void HeaderRightClick()

Select()

Select the current tree node.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Select")]
public virtual void Select()

Implements IRadTreeViewItem.Select()

Toggle()

Toggles (expands/collapses) this node.

Declaration

cs-api-definition
public virtual void Toggle()

Implements IRadTreeViewItem.Toggle()