I have a custom ListBox that uses a custom bar like ItemsHost. I want to control the mouse wheel input, so turning the wheel changes one selected item.
I believe the best way to do this is to handle the OnPreviewMouseWheel event (although this only has what I want as it does not provide horizontal wheel data).
Now the big question is: is there any best practice where to handle OnPreviewMouseWheel? In the ListBox (which by default has no idea about the location of the Panel children) or in the Panel (which by default has no idea about the IsSelected property for the children)?
HDW
source
share