Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149511 | Nov 28,2019 10:44 AM UTC | Dec 4,2019 06:50 AM UTC | Xamarin.Forms | 5 |
![]() |
Tags: SfListView |
Hi Liam,
Thank you for contacting Syncfusion support.
We are currently working on the reported query from our side. We will validate your query and provide you further details on December 2, 2019. We will appreciate your patience until then.
Regards,Gnana Priya N
private void ListView_SelectionChanged(object sender, Syncfusion.ListView.XForms.ItemSelectionChangedEventArgs e)
{
for (int i = 0; i < e.AddedItems.Count; i++)
{
CurrentItem = e.AddedItems[i] as MessageInfo;
CurrentItem.AutomationId = 10000; //You can customize the AutomationId of selected item.
if (previousItem != null)
{
previousItem = e.AddedItems[i] as MessageInfo;
prevId = previousItem.AutomationId;
}
CurrentItem = previousItem;
}
for (int i = 0; i < e.RemovedItems.Count; i++)
{
previousItem = e.RemovedItems[i] as MessageInfo;
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.