Relative Content

Tag Archive for winformsmvvmradio-button

Windows Forms databinding to radio buttons

I am trying to bind two boolean properties to two radio buttons. When the form loads, the two radio buttons are all unchecked. When I clicked the first radio button, it became checked. However, when I tried to click the second radio button, the first one stayed checked and the second one was still unchecked. If I clicked the second radio button again, both radio buttons are unchecked. If I clicked the second radio button again, it would become checked. Basically, it took 3 clicks to make the second radio button checked. Same applies to first radio button if I first checked the second radio button.