ItemContainerGeneratorNeedsContainer Method
Determines whether the specified item needs to be wrapped in a container control.
Namespace: Avalonia.Controls.GeneratorsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public bool NeedsContainer(
Object? item,
int index,
out Object?? recycleKey
)
Public Function NeedsContainer (
item As Object,
index As Integer,
<OutAttribute> ByRef recycleKey As Object
) As Boolean
member NeedsContainer :
item : Object *
index : int *
recycleKey : Object byref -> bool
- item Object
- The item to display.
- 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.
Boolean
true if the item needs a container; otherwise false if the item can itself be used
as a container.