wpf - Zooming on CTRL + Mousewheel in DotNetBrowser -
i'm using dotnetbrowser wpf control , need set zoom level on ctrl + mousewheel event.
i've added following code control, expecting e.delta give me direction mouse wheel being moved. having ctrl key down prevents underlying window scrolling, figured control zoom checking whether delta positive or negative.
browserview.previewmousewheel += (s, e) => { debug.writeline("previewing event " + e.delta); };
however, when attached browserview, delta value 0. how can determine direction mouse wheel being moved can apply zoom level?
Comments
Post a Comment