Interface
ITreeViewItem

Represents the TreeViewItem for SL/Wpf control wrapper interface.

Definition

Namespace:ArtOfTest.WebAii.Controls.Xaml

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public interface ITreeViewItem : IControl, IFrameworkElement, ITargetElement

Derived Classes: TreeViewItemTreeViewItem

Inherited Members IControl.IsEnabledIFrameworkElement.CastAs<T>()IFrameworkElement.Parent<T>()IFrameworkElement.SetProxy(bool)IFrameworkElement.SetUid(string)IFrameworkElement.SetFindInfo(VisualFindInfo)IFrameworkElement.SetXamlTag(string)IFrameworkElement.AssignReference(AutomationReference)IFrameworkElement.SetFocus()IFrameworkElement.GetAutomationProperty(string)IFrameworkElement.GetProperty<T>(string)IFrameworkElement.GetPropertyTypeSafe(string)IFrameworkElement.SetProperty(string, object)IFrameworkElement.ScrollToVisible()IFrameworkElement.UserIFrameworkElement.FindIFrameworkElement.WaitIFrameworkElement.NameIFrameworkElement.AbsoluteSiblingTagIndexIFrameworkElement.ActualWidthIFrameworkElement.ActualHeightIFrameworkElement.TextIFrameworkElement.ToolTipTextIFrameworkElement.TextBlockContentIFrameworkElement.TextLiteralContentIFrameworkElement.ComputedVisibilityIFrameworkElement.UidITargetElement.Match(IFindExpression)ITargetElement.SetDepth(int)ITargetElement.AddChildNode(ITargetElement)ITargetElement.SetClosingTag(ITargetElement)ITargetElement.GetChildren()ITargetElement.GetParent()ITargetElement.GetHostParent()ITargetElement.SetParent(ITargetElement)ITargetElement.Refresh()ITargetElement.GetUniqueHashCode()ITargetElement.GetRectangle()ITargetElement.Capture()ITargetElement.CaptureImage()ITargetElement.GetStringPresentation()ITargetElement.TechnologyTypeITargetElement.DepthITargetElement.IsTestRegionITargetElement.ParsedElementITargetElement.Host

Properties

Header

Get the header element, useful for selection.

Declaration

cs-api-definition
FrameworkElement Header { get; }

Property Value

FrameworkElement

IsExpanded

Get/set whether the item is expanded.

Declaration

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

Property Value

bool

IsSelected

Get/set whether the item is selected.

Declaration

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

Property Value

bool

Items

Get the TreeView root items.

Declaration

cs-api-definition
IList<ITreeViewItem> Items { get; }

Property Value

IList<ITreeViewItem>

ToggleButton

Get the expand/collapse button element.

Declaration

cs-api-definition
FrameworkElement ToggleButton { get; }

Property Value

FrameworkElement

Methods

Select(bool)

Selects the item.

Declaration

cs-api-definition
void Select(bool simulateRealUser)

Parameters

simulateRealUser

bool

Whether to simulate real user action.

Toggle(bool)

Expands/collapses the item.

Declaration

cs-api-definition
void Toggle(bool simulateRealUser)

Parameters

simulateRealUser

bool

Whether to simulate real user action.