WPF Radiobutton (two) (binding to boolean value)

前端 未结 8 2013
深忆病人
深忆病人 2020-12-24 10:51

I have a property of type boolean presented with checkbox.

I want to change that to two radiobuttons that bind on the same property presenting the value true/false.<

8条回答
  •  悲&欢浪女
    2020-12-24 11:47

    Here is the solution on how to bind radio buttons to any type (enumeration, Boolean, string, integer, etc.) with the sample code:

    http://www.codeproject.com/Tips/720497/Binding-Radio-Buttons-to-a-Single-Property

提交回复
热议问题