Remove ListBox_PreviewMouseWheel from MainWindow.cs
This commit is contained in:
parent
4177508c05
commit
89fc37deba
1 changed files with 0 additions and 13 deletions
|
@ -53,18 +53,5 @@ namespace DesktopApplication
|
||||||
Console.WriteLine("CleanFilesBtn_OnClick - On Click");
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue