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…

  1. 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.
  2. 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.