Share via


ElementFactoryGetArgs.Parent 属性

定义

获取或设置应为 GetElement 中已实现元素的父元素的 UIElement

public:
 property UIElement ^ Parent { UIElement ^ get(); void set(UIElement ^ value); };
UIElement Parent();

void Parent(UIElement value);
public UIElement Parent { get; set; }
var uIElement = elementFactoryGetArgs.parent;
elementFactoryGetArgs.parent = uIElement;
Public Property Parent As UIElement

属性值

UIElement 对象应为已实现的 UIElement 的父级或 null。 默认情况下,它为 null

注解

此值是可选的。 使用时,它可以为返回已回收元素的 GetElement 实现启用性能优化。 有关详细信息,请参阅 DataTemplate.RecycleElement 方法的备注。

适用于

另请参阅