-
Hello! I am trying to add DoubleTapped (or something similar to MouseDoubleClick) event to a DataGridRow. I already tried this method, but this also triggers when I double click the column headers, something which I want to avoid. files_datagridview.DoubleTapped += (sender, args) =>
{
//do something
}; This is the DataGrid section. <DataGrid Name="files_datagridview"
Margin="10,80,10,38"
SelectionChanged="datagridview_SelectionChanged"
IsReadOnly="true">
<DataGrid.Columns>
<DataGridTextColumn Header="File Name" Binding="{Binding FileName}" />
<DataGridTextColumn Header="File Type" Binding="{Binding FileType}" />
</DataGrid.Columns>
</DataGrid> |
Beta Was this translation helpful? Give feedback.
Answered by
timunie
Feb 29, 2024
Replies: 1 comment 2 replies
-
you may filter args.Sender for correct control type. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
iMrShadow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you may filter args.Sender for correct control type.