matthew_morgan
12 years agoOccasional Contributor
MouseWheel action on WPF ListView issue?
In the WPF Orders application I added a bunch of records so the ListView would be able to scroll. I tried the code below:
var ctrl = Sys.Process("Orders").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("gridMain").WPFObject("OrdersView");
ctrl.MouseWheel(-200);
No matter what I put for the '# of detents' parameter, it seems to scroll down by 1 detent (-1). I tried -1, -2, 2, 1, 200, -1100...they all resulted in the same result.
I was wondering if anyone else has seen this and if I am just missing something