Make wpf datagrid row is clicked between elements

I have DataTemplates where the elements do not always fill the whole cell (i.e. because I increase the height of the row).

Now the row is selected only if I click inside the element, if I go beyond the element, but still nothing happens in the line.

How to make a Datagrid WPF row available even if I click between elements.

One idea would be to listen to MouseDown in a datagrid, but how can I define a string

Update: the work around is to provide all the datatemplate cells with a border with a transparent background to fill the cell (I think this is not very elegant).

+3
source share
1 answer

, , "" - , .

, , , , , , , .

, , , :

  • , , , , ,

. , , , . - , , . , , .

+1

All Articles