Summary
Retrieves the index of the item from the data source that corresponds to the specified
IControl
.
- Namespace
- Avalonia
.Controls - Containing Type
- ItemsRepeater
Syntax
public int GetElementIndex(IControl element)
Parameters
Name | Type | Description |
---|---|---|
element | IControl | The element that corresponds to the item to get the index of. |
Return Value
Type | Description |
---|---|
int | The index of the item from the data source that corresponds to the specified UIElement, or -1 if the element is not supported. |