I don't know very much WPF, but I was able to do this in WinForms so hopefully it helps. I got this working by creating a new class and inheriting from a ComboBox. Then I created an override on the WndProc method and checked for the mouse wheel message. If I got that one, I did nothing, otherwise I just called the base WndProc.
This prevented the mouse wheel from scrolling my combo box, but everything else was fine.
The code for WM_MOUSEWHEEL is 0x020A. Hopefully you're able to convert that to a WPF equivalent.
So, it looks like this is easier said than done with WPF. I did some googling around and you can indeed override WndProc on WPF, kinda... but it's a pain.
I don't really understand this (ie, I can't get it to work) but I'm not well versed in WPF. Perhaps this will help?
Thanks for your replies, in the end i stopped the entire grid from scroll mousing, it takes away a little functionallity, but then again on the bright side a hundred queries to the database are not being sent anymore either :)
Comment