Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Let DataGridCell handle mouse events itself when already editing
  • Loading branch information
nicolaihenriksen committed Aug 20, 2022
commit 05ccc39c7149f278f86065d58e1d80abb1364a8b
5 changes: 5 additions & 0 deletions MaterialDesignThemes.Wpf/DataGridAssist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ private static void AllowDirectEditWithoutFocus(object sender, MouseButtonEventA
{
return;
}
if (dataGridCell.IsEditing)
{
// If the cell is already being edited, we let the cell itself handle the mouse event
return;
}

dataGrid.CurrentCell = new DataGridCellInfo(dataGridCell);
dataGrid.BeginEdit();
Expand Down