Child control Event handling in Listview using Xamarin.Forms

We can add child controls to Listview in Xamarin.Forms. In order to see the child control in action we will take an example. Let’s display a list of data in the Listview and perform delete option on the list data per row basis.

Since we need to add multiple columns in the list view, we need to use the DataTemplate to define the custom view. Let’s use a model class to assign the data to the custom view.

We will use XAML to design a Listview

InsideXAMLView
In the above XAML, we have used the StackLayout as the parent container for the child views. It contains a Label and a Listview. UI Control is ready.

Time to add event to the child control
We will replace the Button control in the above XAML with the following line

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

%d bloggers like this: