EN
本內容沒有您的語言版本,但有英文版本。

ItemContainerGenerator.ContainerFromItem Method

July 28, 2014

Returns the container corresponding to the specified item.

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

public DependencyObject ContainerFromItem(
	Object item
)

Parameters

item
Type: System.Object
The item to retrieve the container for.

Return Value

Type: System.Windows.DependencyObject
A container that corresponds to the specified item, if the item has a container and exists in the collection; otherwise, null.

If the specified item does not belong to the item collection, or there is no container for it, the ContainerFromItem method returns null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

顯示:
© 2014 Microsoft