programmatically remove the selected item

2 posts, 0 answers
  1. Вадим
    Вадим avatar
    21 posts
    Member since:
    Mar 2016

    Posted 13 Jun Link to this post

    There are three elements that are grouped.
    The customer demanded that, when pressed again, the selection was removed.
    Hung on the event items Click and wrote

    but the selection does not disappear. How to fix?

    if(radiobutton)
        radiobutton.isChecked = false
    else
        radiobutton.isChecked = true
  2. Вадим
    Вадим avatar
    21 posts
    Member since:
    Mar 2016

    Posted 13 Jun in reply to Вадим Link to this post

    if(radiobutton.isChecked)
    radiobutton.isChecked = false
    else
    radiobutton.isChecked = true
Back to Top