阅读背景:

WPF MVVM绑定复选框。在字典中对一个命名项进行ischeck。

来源:互联网 

I have a group of checkboxes that all represent different selections of the same type (for my example, they are all different file types). I feel like binding each one to an individual property in the ViewModel is overkill, and I'd prefer to bind them all to one collection and use the binding syntax to bind each checkbox to a particular item in the collection by key. I'm trying to stick to the MVVM pattern, so I don't just want to get lazy and handle the Checked event or something like that.I have a group of checkboxes that all represent




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: