0

I binded the ZoomLevel-Property of the ChromiumWebBrowser to a Slider in a UserControl.xaml. It works really good and its easy too, but its scrolls to the left upper corner of the browser.

    <Slider Minimum="0" Maximum="10" x:Name="Slider" />

    <cef:ChromiumWebBrowser ZoomLevel="{Binding Path=Value, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ElementName=Slider}" />

Do you know how to control the ChromiumWebBrowser-ScrollVieweror have a solution for this problem?

Peter
  • 1,655
  • 22
  • 44
  • 2
    CefSharp doesn't use a scroll viewer. You might be able to send mouse wheel events, I've never tried, so it's an untested theory. Look at the source for an example sending mouse wheel events. – amaitland Feb 13 '17 at 09:15
  • 1
    Allright so the Scrollbar is from Chromium right? Why do I want to send mousewheel events? Shouldnt i solve this in the browser with js? – Peter Feb 13 '17 at 09:41
  • If you can solve in JavaScript go for it – amaitland Feb 13 '17 at 09:43

0 Answers0