ItemContainerGenerator.ContainerFromItem(Object) Méthode

Définition

Notes

ContainerFromItem peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt ItemsControl.ContainerFromItem.

Retourne le conteneur correspondant à l’élément spécifié.

public:
 virtual DependencyObject ^ ContainerFromItem(Platform::Object ^ item) = ContainerFromItem;
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
DependencyObject ContainerFromItem(IInspectable const& item);
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DependencyObject ContainerFromItem(IInspectable const& item);
[Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public DependencyObject ContainerFromItem(object item);
[Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DependencyObject ContainerFromItem(object item);
function containerFromItem(item)
Public Function ContainerFromItem (item As Object) As DependencyObject

Paramètres

item
Object

Platform::Object

IInspectable

Élément pour lequel récupérer le conteneur.

Retours

Conteneur qui correspond à l’élément spécifié, si l’élément a un conteneur et existe dans la collection ; sinon, null.

Attributs

S’applique à