title: handle check event on checkbox in wpf
body: <p>I've a listview containing name and two checkboxes( name, male(checkbox),female(checkbox)). I want make sure only one checkbox is selected from listview at a time.</p>
  
  <pre><code>   &lt;UserControl.Resources&gt;
     &lt;DataTemplate x:Key="datatemp"&gt;
          &lt;StackPanel Orientation="Horizontal" Width="200" &gt;
              &lt;TextBlock Text="{Binding VmName}" Width="129" Visibility="Visible" /&gt;
              &lt;CheckBox  Name="cb"  IsThreeState="False" Checked="off_chek_select"  IsChecked="{Binding IsCheck, Mode=TwoWay}"  Margin="6,0,18,6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/&gt;
              &lt;CheckBox  Name="cb1" IsThreeState="False" Checked="ins_chek_select" IsChecked="{Binding IsCheck1, Mode=TwoWay}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  /&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
  &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>here, I've used this <strong>datatemplate</strong> in listview. I'm not able to access controls from datatemplate for writing on check event.</p>