MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Style/disable scrollbar PDF viewer
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
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


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.


Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WPF NavigationCompleted handler and the ExecuteScriptAsync call shown in the repro. Compare the scrollbar behavior for a website and a PDF using WebView2 1.0.11.33 prerelease on Windows 10. Done means determining whether the PDF scrollbar can be customized or disabled and documenting the supported behavior or limitation.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100