O'Reilly logo

Xamarin Blueprints by Michael Williams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ListViews and ObservableCollections

Now we move on to StocklistPage and StocklistPageViewModel; these will be used to display all the items we pull down from the API. On the frontend we will be using<span highlight="">&nbsp;</span>ListView, they are the most common UI elements for displaying lists of data that are pulled down from any API. The beauty of ListViews is how they are presented via each platform. Placing a ListView in our XAML sheet via Xamarin.Forms on iOS will render a UITableView, on Android a native ListView, and in Windows a FrameworkElement. We can also create custom cell items and set up data bindings specific to each item, so with each contract that is deserialized, we want to have a separate view-model that will be used for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required