ElementRealizationOptions Enum

Summary

Defines constants that specify whether to suppress automatic recycling of the retrieved element or force creation of a new element.
Namespace
Avalonia.Layout
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["ElementRealizationOptions"] class Type type-node

Syntax

[Flags]
public enum ElementRealizationOptions

Remarks

When you call GetOrCreateElementAt(int, ElementRealizationOptions), 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.

Attributes

Type Description
FlagsAttribute

Fields

Name Constant Value Summary
ForceCreate 1
Creation of a new element is forced.
static
None 0
No option is specified.
static
SuppressAutoRecycle 2
The element is ignored by the automatic recycling logic.
static

Extension Methods