WPF datagrid single click editing

Sep 3, 2013 at 12:25 PM
I've seen this come up several times but the solutions do not seem to work for .Net 4.5 with Visual Studi 2012.

I have a data grid with a template column. In each cell is a stack panel that contains a check box or a textbox.

Is there any way to get the check box checked (or unchecked) once the user clicks or focuses on a particular cell? i.e. instead of having to click twice, for the check box to be toggled on one click?

Similarly, once the cell with the textbox is clicked the user should be able to start typing.

Thanks in advance.