title: WPF: Check/Uncheck all checkbox for checkboxes located in gridview cell template?
body: <p>I'm trying to create a check/uncheck all <code>CheckBox</code> for a number of <code>CheckBoxes</code> that are located inside the cell template of a <code>GridViewColumn</code>. I added this column to a <code>GridView</code> (along with other columns), set the <code>GridView</code> to the view property of a <code>ListView</code>, and then databound the <code>ListView</code> to a collection of custom <code>DataObjects</code>. So, each row of the <code>ListView</code> has a column that contains a checkbox as well as columns bound to property paths of the bound object.</p>
  
  <p>I would like to create the check/uncheck all <code>CheckBox</code> by binding the <code>IsChecked</code> property of the <code>CheckBoxes</code>, but I do not want to change the data object the <code>ListView</code> is bound to. My first attempt was to bind the ListView to a <code>Dictionary&lt;DataObject,Boolean&gt;</code> and then bind the <code>IsChecked</code> property to the <code>Value</code> of the <code>Dictionary</code> and the other columns to <code>Key</code>.<i><code>DataObjectProperty</code></i>. Then, I simply toggled the <code>Values</code> of the Dictionary when then check/uncheck all <code>CheckBox</code> was clicked. The binding to worked properly, but apparently dictionaries don't support change notification so the <code>CheckBoxes</code> were never updated.</p>
  
  <p>Does anyone have any suggestions as to the best way to solve this problem?</p>