Question: I'm completely new to xamarin.forms, I need to add a checkbox, radio buttons and drop down list. I tried some samples from net but I'm not able to get the checkbox. Can anyone help me to achieve this in xamarin.forms?

Xaml file

```
<toolkit:CheckBox Text ="Employee"
                  FontSize="20"
                  CheckedChanged ="OnClicked"/>

```

or

```
<controls:CheckBox DefaultText="Default text"
                               HorizontalOptions="FillAndExpand"
                               TextColor="Green"
                               FontSize="25"
                               FontName="AmericanTypewriter"/>

```

Some links or sample code will make it easier to understand.

Answer: 
You need to add the Nuget package called Xlabs.form. Try to import it in your Xaml.cs file like:

```
using XLabs.Forms.Controls;

```

In addition, you also have to add the following line in your .cs file:

```
CheckBox chk=new CheckBox()
            {
                checked=false;
            };

```

In Xaml it is different:

```
<CheckBox  x:Name="checked" isSelected="{Binding flag}"/>

```

Or you can use `<controls:checkbox>`.

Note: Don't forget to add the below line in the Contentpage of Xaml:

```
 xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"

```
Now Xamarin Forms has their own CheckBox.

```
<CheckBox IsChecked="{Binding IsChecked}"/>

```