How to change webview2 fit to page button on PDF toolbar default to fit to width?
I am using a WebView2 control in a WPF application in C# to render a local pdf document.
It is working fine. However, I’d like the “Fit to Page” button default to “Fit to width” when a PDF file is displayed in the WebView2 control.
How can I change the default behavior?
WebView2 New Windows Request should open new Tab inside the Application instead
I am using WebView2 inside my WPF Project.
At the moment, the behaviour is – if a webpage tries to open a new Window, there is a WebView2 Window opening outside my application.