TreeViewExtensions.ContainerFromItem Method
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
- treeView
Type: System.Windows.Controls.TreeView
- item
Type: System.Object
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.