Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 1.39 KB

elementfactorygetargs_parent.md

File metadata and controls

29 lines (17 loc) · 1.39 KB
-api-id -api-type
P:Microsoft.UI.Xaml.ElementFactoryGetArgs.Parent
winrt property

Microsoft.UI.Xaml.ElementFactoryGetArgs.Parent

-description

Gets or sets the UIElement that is expected to be the parent of the realized element from GetElement.

-property-value

The UIElement object expected to be the parent of the realized UIElement or null. By default, it is null.

-remarks

This value is optional. When used 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

IElementFactory, DataTemplate.GetElement, DataTemplate.RecycleElement, DataTemplateSelector.GetElement, DataTemplateSelector.RecycleElement, ElementFactoryGetArgs, ElementFactoryRecycleArgs

-examples