Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.2 KB

itemsrepeater_elementindexchanged.md

File metadata and controls

27 lines (16 loc) · 1.2 KB
-api-id -api-type
E:Microsoft.UI.Xaml.Controls.ItemsRepeater.ElementIndexChanged
winrt event

Microsoft.UI.Xaml.Controls.ItemsRepeater.ElementIndexChanged

-description

Occurs for each realized UIElement when the index for the item it represents has changed.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-remarks

When you use ItemsRepeater to build a more complex control that supports specific interactions on the child elements (such as selection or click), it is useful to be able to keep an up-to-date identifier for the backing data item.

This event is raised for each realized UIElement where the index for the item it represents has changed. For example, when another item is added or removed in the data source, the index for items that come after in the ordering will be impacted.

-see-also

-examples