ItemsControl.ItemsControlFromItemContainer(DependencyObject) 方法

定義

傳回擁有指定之容器專案的 ItemsControl

 static ItemsControl ItemsControlFromItemContainer(DependencyObject const& container);
public static ItemsControl ItemsControlFromItemContainer(DependencyObject container);
function itemsControlFromItemContainer(container)
Public Shared Function ItemsControlFromItemContainer (container As DependencyObject) As ItemsControl

參數

container
DependencyObject

要為其傳回 ItemsControl 的容器專案。

傳回

擁有指定容器專案的 ItemsControl ;否則為 null。

適用於