ItemContainerGeneratorItemContainerPrepared Method
Notifies the
ItemsControl that a container has been fully prepared to
display an item.
Namespace: Avalonia.Controls.GeneratorsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void ItemContainerPrepared(
Control container,
Object? item,
int index
)
Public Sub ItemContainerPrepared (
container As Control,
item As Object,
index As Integer
)
member ItemContainerPrepared :
container : Control *
item : Object *
index : int -> unit
Parameters
- container Control
- The container control.
- item Object
- The item being displayed.
- index Int32
- The index of the item being displayed.
This method must be called when a container has been fully prepared and added
to the logical and visual trees, but may be called before a layout pass has completed.
It must be called regardless of the result of
NeedsContainer(Object, Int32, Object) but if that method returned
false then must be called only a single time.