From 89fc37debaa41110222b371abfe51fc8162beae3 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Wed, 9 Feb 2022 22:49:14 +0200 Subject: [PATCH] Remove ListBox_PreviewMouseWheel from MainWindow.cs --- DesktopApplication/MainWindow.xaml.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/DesktopApplication/MainWindow.xaml.cs b/DesktopApplication/MainWindow.xaml.cs index c4b0e0e..56f2cb7 100644 --- a/DesktopApplication/MainWindow.xaml.cs +++ b/DesktopApplication/MainWindow.xaml.cs @@ -53,18 +53,5 @@ namespace DesktopApplication Console.WriteLine("CleanFilesBtn_OnClick - On Click"); } - - private void ListBox_PreviewMouseWheel(object sender, MouseWheelEventArgs e) - { - if (e.Delta > 0) - { - ScrollBar.LineDownCommand.Execute(null, e.OriginalSource as IInputElement); - } - if (e.Delta < 0) - { - ScrollBar.LineUpCommand.Execute(null, e.OriginalSource as IInputElement); - } - e.Handled = true; - } } } \ No newline at end of file