TreeViewExtensions.ContainerFromItem Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.TeamFoundation.Controls.WPF
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ContainerFromItem ( _
    treeView As TreeView, _
    item As Object _
) As DependencyObject
public static DependencyObject ContainerFromItem(
    this TreeView treeView,
    Object item
)
[ExtensionAttribute]
public:
static DependencyObject^ ContainerFromItem(
    TreeView^ treeView, 
    Object^ item
)
static member ContainerFromItem : 
        treeView:TreeView * 
        item:Object -> DependencyObject
public static function ContainerFromItem(
    treeView : TreeView, 
    item : Object
) : DependencyObject

Parameters

Return Value

Type: System.Windows.DependencyObject
Returns DependencyObject.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TreeView. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

TreeViewExtensions Class

Microsoft.TeamFoundation.Controls.WPF Namespace