Adding, removing, and refreshing items
It is very common that you want to manipulate the data while your application is running; change data on your server, or locally; do calculations; refresh the representation of your data; and allow your user to add items and update or delete an item. This is as easy as working with a collection type in C#.
How to do it…
- In Visual Studio, go to the top menu and select File | New | Project. Choose the Blank App (Xamarin.Forms Portable) template, name it
XamFormsAddingRemovingItems
, and click OK. - In this recipe, we demonstrate the pull-to-refresh feature added in Xamarin.Forms 1.4. Make sure you have updated the Xamarin.Forms NuGet package for the solution. To do this, right-click the solution and select Manage ...
Get Xamarin: Cross-Platform Mobile Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.