Skip to content

Commit

Permalink
Merge pull request #4220 from bolyb/combobox-triple-click-fix
Browse files Browse the repository at this point in the history
Improving ComboBoxColumn behavior to prevent triple click behavior
  • Loading branch information
michael-hawker authored Sep 2, 2021
2 parents e4b8a68 + 8273bca commit 0ee2c84
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ protected override void CancelCellEdit(FrameworkElement editingElement, object u
/// <returns>The unedited value. </returns>
protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
{
return (editingElement as ComboBox)?.SelectedItem;
if(editingElement is ComboBox comboBox)
{
comboBox.IsDropDownOpen = true;
return comboBox.SelectedItem;
}

return null;
}

/// <summary>
Expand Down

0 comments on commit 0ee2c84

Please sign in to comment.