In a WPF application I want to use the WebView2 as a PDF viewer.
But because the default scrollbar doesn't comply with the application style,
I'd like to customize or adleast disable it.
while showing a website, I'm able to hide the scrollbar, but when loading a pdf, it is still visible.
Version
WebView2: 1.0.11.33 prerelease
Framework WPF, .net core 3.1
OS: Windows 10 Professional 20H2
Repro Steps
on navigation completed event, I use the executescript async to disable the scrollbar
but when loading a pdf, it has no effect
when I paste the style to the console, the scrollbar disapears, so I believe that it is a bug.
Description
In a WPF application I want to use the WebView2 as a PDF viewer. But because the default scrollbar doesn't comply with the application style, I'd like to customize or adleast disable it.
while showing a website, I'm able to hide the scrollbar, but when loading a pdf, it is still visible.
Version WebView2: 1.0.11.33 prerelease Framework WPF, .net core 3.1 OS: Windows 10 Professional 20H2
Repro Steps
on navigation completed event, I use the executescript async to disable the scrollbar![method](https://user-images.githubusercontent.com/99214374/152869149-66593330-b78e-4bcc-9ffd-83346413a3df.png)
but when loading a pdf, it has no effect
when I paste the style to the console, the scrollbar disapears, so I believe that it is a bug.
AB#38097610