Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.29 KB

elementrealizationoptions.md

File metadata and controls

39 lines (22 loc) · 1.29 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.ElementRealizationOptions
winrt enum

Microsoft.UI.Xaml.Controls.ElementRealizationOptions

-description

Defines constants that specify whether to suppress automatic recycling of the retrieved element or force creation of a new element.

-enum-fields

-field ForceCreate

Creation of a new element is forced.

-field None

No option is specified.

-field SuppressAutoRecycle

The element is ignored by the automatic recycling logic.

-remarks

When you call GetOrCreateElementAt(index, options), you can specify whether to suppress automatic recycling of the retrieved element or force creation of a new element. Elements retrieved with automatic recycling suppressed (SuppressAutoRecycle) are ignored by the automatic recycling logic that clears realized elements that were not retrieved as part of the current layout pass. You must explicitly recycle these elements by passing them to the RecycleElement method to avoid memory leaks.

-see-also

GetOrCreateElementAt(index, options)

-examples