ElementFactoryRecycleArgs.Parent ElementFactoryRecycleArgs.Parent ElementFactoryRecycleArgs.Parent ElementFactoryRecycleArgs.Parent Property

Definition

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

public : UIElement Parent { get; set; }
UIElement Parent();

void Parent(UIElement parent);
public UIElement Parent { get; set; }
Public ReadWrite 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.

See also

  • T:Windows.UI.Xaml.IElementFactory * DataTemplate * M:Windows.UI.Xaml.DataTemplate.GetElement(Windows.UI.Xaml.ElementFactoryGetArgs) * M:Windows.UI.Xaml.DataTemplate.RecycleElement(Windows.UI.Xaml.ElementFactoryRecycleArgs) * DataTemplateSelector * M:Windows.UI.Xaml.Controls.DataTemplateSelector.GetElement(Windows.UI.Xaml.ElementFactoryGetArgs) * M:Windows.UI.Xaml.Controls.DataTemplateSelector.RecycleElement(Windows.UI.Xaml.ElementFactoryRecycleArgs) * T:Windows.UI.Xaml.ElementFactoryGetArgs * T:Windows.UI.Xaml.ElementFactoryRecycleArgs