Share via


ElementFactoryRecycleArgs.Parent 属性

定义

获取或设置对要回收的元素的当前父 UIElement 的引用。

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

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

属性值

UIElement 对象或 null。 默认情况下,它为 null

注解

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

适用于

另请参阅