ItemsControl.ContainerFromItem(Object) 方法

定义

返回与指定项对应的容器。

public:
 virtual DependencyObject ^ ContainerFromItem(Platform::Object ^ item) = ContainerFromItem;
DependencyObject ContainerFromItem(IInspectable const& item);
public DependencyObject ContainerFromItem(object item);
function containerFromItem(item)
Public Function ContainerFromItem (item As Object) As DependencyObject

参数

item
Object

Platform::Object

IInspectable

要为其检索容器的项。

返回

一个对应于指定项的容器(如果该项具有容器且存在于集合中);否则为 null

实现

M:Windows.UI.Xaml.Controls.IItemContainerMapping.ContainerFromItem(System.Object) M:Windows.UI.Xaml.Controls.IItemContainerMapping.ContainerFromItem(Platform::Object) M:Windows.UI.Xaml.Controls.IItemContainerMapping.ContainerFromItem(IInspectable)

适用于