مشاركة عبر


ElementFactoryRecycleArgs.Parent Property

Definition

Gets or sets a reference to the current parent UIElement of the element being recycled.

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

Property Value

The parent UIElement object or null. By default, it is null.

Remarks

This value is optional. When provided it can enable a performance optimization for implementations of GetElement that return recycled elements. For more info, see the remarks for the DataTemplate.RecycleElement method.

Applies to

See also