-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.ElementFactoryGetArgs.Parent |
winrt property |
Gets or sets the UIElement that is expected to be the parent of the realized element from GetElement.
The UIElement object expected to be the parent of the realized UIElement or null. By default, it is null.
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.
IElementFactory, DataTemplate.GetElement, DataTemplate.RecycleElement, DataTemplateSelector.GetElement, DataTemplateSelector.RecycleElement, ElementFactoryGetArgs, ElementFactoryRecycleArgs