Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Add new items to top of ListView

A_VA_V USMember ✭✭✭
edited March 2017 in Xamarin.Forms

Hi, How to add new items to top of ListView while refreshing the List.
void OnRefresh(object sender, EventArgs e)
{
var list = (ListView)sender;
items.Add(new ViewModel {Name="Apple",Type="Fruit"});
}
Thank you.

Best Answer

Answers

  • A_VA_V USMember ✭✭✭
    edited March 2017

    Thank you @AlessandroCaliaro , OnRefresh items are not showing when navigate to back page and re navigate to ListView page and also how to prevent duplicate values OnRefresh.

Sign In or Register to comment.