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

適用於

另請參閱