J
J
Jaguar_sea2015-07-23 13:15:17
WPF
Jaguar_sea, 2015-07-23 13:15:17

How to make DoubleClick on DataGridRow work?

Good day! I don't like this option at all:

<DataGrid>
  <DataGrid.InputBindings>
    <MouseBinding MouseAction="LeftDoubleClick" Command="{Binding Path=DoubleClickCommand}"/>
  </DataGrid.InputBindings>
</DataGrid>

Since it works even when clicking on an empty (not filled with content) part of the DataGrid. Therefore, I would like to find out what are the best practices for binding commands specifically to DataGridRow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oxoron, 2015-07-23
@Oxoron

Use another event.
Double click on a cell , double click on a column header , double click on a row header .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question