ItemsControl.ItemsControlFromItemContainer(DependencyObject) 方法

定义

返回拥有指定容器元素的 ItemsControl

public:
 static System::Windows::Controls::ItemsControl ^ ItemsControlFromItemContainer(System::Windows::DependencyObject ^ container);
public static System.Windows.Controls.ItemsControl ItemsControlFromItemContainer (System.Windows.DependencyObject container);
static member ItemsControlFromItemContainer : System.Windows.DependencyObject -> System.Windows.Controls.ItemsControl
Public Shared Function ItemsControlFromItemContainer (container As DependencyObject) As ItemsControl

参数

container
DependencyObject

要为其返回 ItemsControl 的容器元素。

返回

ItemsControl

拥有指定容器元素的 ItemsControl

适用于

另请参阅