Compartir a través de


ItemContainerGenerator.ContainerFromIndex(Int32) Método

Definición

Nota:

ContainerFromIndex puede modificarse o no estar disponible para las versiones después de Windows 8.1. En su lugar, use ItemsControl.ContainerFromIndex.

Devuelve el contenedor del elemento en el índice especificado dentro de 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

Parámetros

index
Int32

int

Índice del elemento que se va a recuperar.

Devoluciones

Contenedor del elemento en el índice especificado dentro de la colección de elementos, si el elemento tiene un contenedor; de lo contrario, null.

Atributos

Se aplica a