How To Add Checkbox Inside Listview In WPF

Use it like this     before listview control

<Window.Resources>

<DataTemplate x:Key="FirstCell">

<StackPanel Orientation="Horizontal">

<CheckBox Name="chk1"  IsChecked="{Binding Path=IsSelected,

RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListViewItem}}}"/>

</StackPanel>

</DataTemplate>

</Window.Resources>