Panel.CreateUIElementCollection(FrameworkElement) 方法

定义

创建一个新的 UIElementCollection

protected:
 virtual System::Windows::Controls::UIElementCollection ^ CreateUIElementCollection(System::Windows::FrameworkElement ^ logicalParent);
protected virtual System.Windows.Controls.UIElementCollection CreateUIElementCollection (System.Windows.FrameworkElement logicalParent);
abstract member CreateUIElementCollection : System.Windows.FrameworkElement -> System.Windows.Controls.UIElementCollection
override this.CreateUIElementCollection : System.Windows.FrameworkElement -> System.Windows.Controls.UIElementCollection
Protected Overridable Function CreateUIElementCollection (logicalParent As FrameworkElement) As UIElementCollection

参数

logicalParent
FrameworkElement

要创建的集合的逻辑父元素。

返回

UIElementCollection

具有指定逻辑父项的元素的有序集合。

注解

使用生成的 UIElementCollection 用于缓存有关子元素的信息或执行增量布局更新。

适用于

另请参阅