WPF Datagrid Select all button - unselect all too?

Sep 29, 2009 at 5:00 PM


I would like to know if it would be possible to add functionality to the 'Select All' button in the top left of a datagrid so that it also unselects all rows? I have a method attached to a button which does this, but it would be great if I could fire this method from the Select All button, to keep functionality in the same part of the view. Can this select all button have code added to it?