Help with Checkbox

2 posts, 0 answers
  1. Rudi Antonio
    Rudi Antonio avatar
    2 posts
    Member since:
    Aug 2016

    Posted 29 Aug Link to this post

    I have the following checkbox:


                   <CheckBox  x:Name="chck_tipoR" IsChecked="{Binding Liquidar, Mode=TwoWay}"   Click="chck_tipoR_Click"/>


    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();


  2. Dilyan Traykov
    Dilyan Traykov avatar
    337 posts

    Posted 01 Sep Link to this post


    I'm attaching a sample project to demonstrate how such behavior can be achieved. I've used a simple confirm dialog window, but you're free to implement any logic you desire in the custom command.

    Please have a look and let me know whether such an approach would be suitable for you.

    Dilyan Traykov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top