Export (0) Print
Expand All

ItemContainerGenerator.ContainerFromItem Method

Returns the UIElement corresponding to the given item.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)

public DependencyObject ContainerFromItem (
	Object item
)
public DependencyObject ContainerFromItem (
	Object item
)
public function ContainerFromItem (
	item : Object
) : DependencyObject
You cannot use methods in XAML.

Parameters

item

The Object item to find the UIElement for.

Return Value

A UIElement that corresponds to the given item. Returns a null reference (Nothing in Visual Basic) if the item does not belong to the item collection, or if an UIElement has not been generated for it.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft