I have the following checkbox:
<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox x:Name="chck_tipoR" IsChecked="{Binding Liquidar, Mode=TwoWay}" Click="chck_tipoR_Click"/>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
the "Liquidar" variable is my base data type bool that makes the checkbox to appear selected or not, I want to make the checkbox that will click and not checked activate depending on a condition, the condition is that by giving click the checkbox a login screen where the user and password introduce me appears and when it has been satisfying my checkbox is activated.
I'm ultizando the click event for this action but in the method click the checbox in code behind not like having only the checkbox that I clicked activated, not as referrers the checkbox that I clicked and this is activated .
Please can support me with this
here is my metod:
private void chck_tipoR_Click(object sender, RoutedEventArgs e)
{
DialogoConfirmacionCobrar midialog = new DialogoConfirmacionCobrar();
midialog.ShowDialog();
}