Share via


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。

适用于