c# - Modification required to transform a checkbox to a three-state one in WPF -


i have checkbox defined follows:

<checkbox x:name="t09_ch105" ischecked="{binding path=t09_ch105,mode=twoway}" content="others"/> 

and corresponding datamember:

[datamember] public boolean t09_ch105 {   { return _t09_ch105; }         set { if (_t09_ch105 != value) {             _t09_ch105 = value;             onpropertychanged("t09_ch105");           }       }   } 

how can make three-state checkbox ? haven't been able figure out how adapt i've read online code.

thanks

use nullable bool: bool? or nullable<bool> (see corresponding msdn article reference)

if status null wpf checkbox displays "half checked" state.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -