Condividi tramite


ItemContainerGenerator.ContainerFromIndex(Int32) Metodo

Definizione

Nota

ContainerFromIndex può essere modificato o non disponibile per le versioni dopo Windows 8.1. Usare invece ItemsControl.ContainerFromIndex.

Restituisce il contenitore per l'elemento in corrispondenza dell'indice specificato all'interno di ItemCollection.

public:
 virtual DependencyObject ^ ContainerFromIndex(int index) = ContainerFromIndex;
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
DependencyObject ContainerFromIndex(int const& index);
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DependencyObject ContainerFromIndex(int const& index);
[Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public DependencyObject ContainerFromIndex(int index);
[Windows.Foundation.Metadata.Deprecated("ContainerFromIndex may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromIndex.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DependencyObject ContainerFromIndex(int index);
function containerFromIndex(index)
Public Function ContainerFromIndex (index As Integer) As DependencyObject

Parametri

index
Int32

int

Indice dell'elemento da recuperare.

Restituisce

Contenitore per l'elemento in corrispondenza dell'indice specificato all'interno della raccolta di elementi, se l'elemento ha un contenitore; in caso contrario, null.

Attributi

Si applica a