From 4d746657d140ea43d11a2fa9362da791c2de18df Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 1 Jan 2021 03:05:04 +0200 Subject: Fixed issue with SearchComboBox mouse wheel. --- .../Tango.SharedUI/Controls/SearchComboBox.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Software/Visual_Studio/Tango.SharedUI/Controls') diff --git a/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs b/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs index 1f2856a32..011087d54 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Controls/SearchComboBox.cs @@ -227,29 +227,29 @@ namespace Tango.SharedUI.Controls if (e.Delta > 0) { _listBox.RaiseEvent( - new KeyEventArgs( - System.Windows.Input.Keyboard.PrimaryDevice, - PresentationSource.FromVisual(_listBox), 0, Key.Down) - { RoutedEvent = System.Windows.Input.Keyboard.KeyDownEvent }); + new KeyEventArgs( + System.Windows.Input.Keyboard.PrimaryDevice, + PresentationSource.FromVisual(_listBox), 0, Key.Up) + { RoutedEvent = System.Windows.Input.Keyboard.KeyDownEvent }); _listBox.RaiseEvent( new KeyEventArgs( System.Windows.Input.Keyboard.PrimaryDevice, - PresentationSource.FromVisual(_listBox), 0, Key.Down) + PresentationSource.FromVisual(_listBox), 0, Key.Up) { RoutedEvent = System.Windows.Input.Keyboard.KeyUpEvent }); } else { _listBox.RaiseEvent( - new KeyEventArgs( - System.Windows.Input.Keyboard.PrimaryDevice, - PresentationSource.FromVisual(_listBox), 0, Key.Up) - { RoutedEvent = System.Windows.Input.Keyboard.KeyDownEvent }); + new KeyEventArgs( + System.Windows.Input.Keyboard.PrimaryDevice, + PresentationSource.FromVisual(_listBox), 0, Key.Down) + { RoutedEvent = System.Windows.Input.Keyboard.KeyDownEvent }); _listBox.RaiseEvent( new KeyEventArgs( System.Windows.Input.Keyboard.PrimaryDevice, - PresentationSource.FromVisual(_listBox), 0, Key.Up) + PresentationSource.FromVisual(_listBox), 0, Key.Down) { RoutedEvent = System.Windows.Input.Keyboard.KeyUpEvent }); } //base.OnPreviewMouseWheel(e); -- cgit v1.3.1