Customizing Listview display in Xamarin

As the usual behavior of ListView to display the items in a list and it contains a single column. The ItemSource property of Listview accepts the list of data to be displayed and render the same on screen.

The code for a simple list to display the Students of a class would like as in the following pic.

ListViewInXamarinForms

Now let’s customize this ListView in a way to display the Student Name along with the Class and School they belongs to.

ListViewItem

As in the image above, the data contains a single record. So to accommodate the data in a single record, Let’s create a Student model class.

In order to customize the ListView display, we need to override the ViewCell class.

Read More

What’s new in Xamarin.Forms 1.3 : Inherited App Class

With the new release of Xamarin.Forms 1.3 version, the App Class has its new Avatar. The Older version of App Class was just a class with static methods. Unlike the older version, the new version is an inherited class from the Xamarin.Forms.Application class. Summary of improvements Addition of new life cycle events : We can

Read More

Consuming RESTFul web Service in XamarinForms project Using HttpClient

Web service is an important part of the mobile app. I am trying to consume a RESTFul web service in Xamarin using HttpClient. Prerequisites : – Microsoft.Net.Http – Newtonsoft.Json In this example, let’s display the name of the places for a given postal code. We will use the http://api.geonames.com webservice to get the places. Call

Read More

Configure Xamarin.Forms XAML intellisense in Visual Studio

There is a plugin available for Visual Studio to enable intellisense for Xamarin.Forms XAML.

Don’t believe me. Here is how I saw before the XAML intellisense is installed.

WithoutIntellisense

 

Let’s configure it in Visual Studio. 

Read More

1 2
%d bloggers like this: