ItemsControlNeedsContainerOverride Method
Determines whether the specified item can be its own container.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected virtual bool NeedsContainerOverride(
Object? item,
int index,
out Object?? recycleKey
)
Protected Overridable Function NeedsContainerOverride (
item As Object,
index As Integer,
<OutAttribute> ByRef recycleKey As Object
) As Boolean
abstract NeedsContainerOverride :
item : Object *
index : int *
recycleKey : Object byref -> bool
override NeedsContainerOverride :
item : Object *
index : int *
recycleKey : Object byref -> bool
- item Object
- The item to check.
- index Int32
- The index of the item.
- recycleKey Object
-
When the method returns, contains a key that can be used to locate a previously
recycled container of the correct type, or null if the item cannot be recycled.
If the item is its own container then by definition it cannot be recycled, so
recycleKey shoud be set to null.
Boolean
true if the item needs a container; otherwise false if the item can itself be used
as a container.