共用方式為


ItemContainerGenerator.ItemFromContainer(DependencyObject) 方法

定義

注意

ItemFromContainer 可能會在Windows 8.1之後變更或無法使用發行。 請改用 ItemsControl.ItemFromContainer

傳回對應至指定之產生的容器的專案。

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

參數

container
DependencyObject

對應至要傳回之專案的 DependencyObject

傳回

Object

Platform::Object

IInspectable

包含的專案,如果不包含專案,則為容器。

屬性

適用於