WPF Bind Checkbox IsChecked to other Checkboxes (IsChecked || !IsEnabled)

I have a select 'All' checkbox that I would like to be bound to the (IsChecked || !IsEnabled) of other checkboxes.

  • Checking 'All' checks all enabled checkboxes.

  • Unchecking 'All' unchecks all checkboxes.

  • Manually checking each enabled checkbox will check 'All'.

  • When all enabled checkboxes and 'All' are checked and user unchecks any checkbox, 'All' automatically unchecks.

I am new to WPF Databinding. I was thinking maybe I just handle the click of 'All' to set the other checkboxes. But I don't know how to bind to both properties of multiple sources. When I click 'All' and manually uncheck another checkbox, 'All' needs to uncheck.

6
задан Anatoliy Nikolaev 5 August 2013 в 05:43
поделиться