Questions tagged [webview2]

Use the tag for the questions about Microsoft Edge WebView2 control. For current issues check https://github.com/MicrosoftEdge/WebView2Feedback/issues

Microsoft Edge WebView2 control uses Microsoft Edge (Chromium) as the rendering engine.

It can be used in Win32 C++ or .NET (WPF or WinForms) and WinUI 3 applications.

For further information, see the WebView2 documentation or the WebView2 feedback project for bugs and feature requests.

727 questions
3
votes
0 answers

Microsoft.Web.WebView2 / .NET Framework 4.8 WinForms application + Published application run-time error (REGDB_E_CLASSNOTREG)

We are using XenApp: 7.6. We have a .NET full framework 4.8 WinForms application as a published application within Citrix Receiver. This published application is hosted on a Windows Server 2008 R2 SP1 (64 bit) machine. Our application uses…
RyanH
  • 31
  • 3
3
votes
1 answer

How to add Microsoft Edge WebView2 Runtime as prerequisite

I have WPF .Net core 3.1 Desktop Application and trying to Add MicrosoftEdgeWebView2Runtime as prerequisite with Clickonce but I'm not able to find in prerequisite list. Thanks in Advance. Ravi V.
Ravi vanzara
  • 73
  • 1
  • 7
3
votes
1 answer

Accessing cookies in WebView2 using PowerShell

Using the working example to start a WebView2 instance in PowerShell here: WebView2 in PowerShell Winform GUI I noticed it maintains cookies nicely between sessions, just like 'normal' Edge. In some scenario's however, manually getting and/or…
Jos
  • 140
  • 1
  • 11
3
votes
0 answers

Is there a way to install WebView2 Runtime from a msix store app

I'm working on a hybrid pwa/uwp app which has a lot of issues on the old WebView but works perfect on WebView2, the thing is that I need to be sure that the Runtime is installed so my app can work and really don't like the idea of asking the user…
DLeon
  • 31
  • 1
3
votes
1 answer

WebView2 how to run Javascript function?

In my WebView2 i load my local html with js file, all works fine, but how can i run a script from my WinForm in WebView? Till now i was using webBrowser in VB and i was doing it like this: WebBrowser1.Document.InvokeScript("addProducts", New…
Kasper Juner
  • 832
  • 3
  • 15
  • 34
3
votes
2 answers

Switch Webview2 to fullscreen when page video goes fullscreen

I have a webpage that is basically a video with custom controls that's been put in a webview2 and when I try to use the full screen control that the page has, it doesn't go into fullscreen. I haven't made any changes to the code as its a fresh new…
Redstone145
  • 103
  • 2
  • 8
3
votes
1 answer

WebView2 Source property doesn't initiate CoreWebView2

I've spent half an hour trying to figure out this tedious issue where you're unable to Navigate strings unless the Source property is set. After all, I figured out a workaround hack since WebView2 demands an absolute path to an html file or nothing…
wellinthatcase
  • 120
  • 2
  • 8
3
votes
2 answers

How detect a mouse click in webview2 (c#/vb.net)

I try to get the events click of html element. With a WebBrowser I used : instance = Nothing instance = WebBrowser1.Document AddHandler instance.Click, AddressOf Document_Click But with Webview2 I don't find the good…
3
votes
1 answer

How to open DevTools from code in WebView2?

With the newly released WebView2, is it possible to open the DevTools from code (WinForms)? I want to automatically show the DevTools (console) on Javascript errors.
MojoDK
  • 4,410
  • 10
  • 42
  • 80
3
votes
2 answers

Search functionality in WebView2

Thanks in Advance ! In my application, I have embedded a WebView2 control inside a WPF usercontrol. Is there anyway or a workaround that can help me to search text in the WebView2 control ? I see that the search text box opens up through Ctrl + F .…
DotNetSpartan
  • 931
  • 4
  • 20
  • 41
3
votes
2 answers

Bind WebView2 to ViewModel Using Caliburn Micro

I am using the guide located her for reference: https://learn.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/wpf Utilizing that guide, I was able to get WebView2 started within my application. Now I am trying to seperate the code into a…
Jakxna360
  • 857
  • 2
  • 9
  • 31
3
votes
2 answers

Bypass invalid SSL certificate for Kestrel server displayed in WebView2

Given WPF app starts Kestrel server Kestrel listens to http://0.0.0.0:5000 and https://0.0.0.0:6000 Kestrel is pointed to static HTML file index.html WPF shows browser control WebView2 which is pointed to…
Anonymous
  • 1,823
  • 2
  • 35
  • 74
3
votes
2 answers

Set cookies for WebView2, in WebResourceRequested event

I am using the new WebView2 control (which is in developer preview) to replace the WebBrowser control in a Windows.Forms application. The main reason for switching to the WebView2 control is that it is based on Chromium which works with WebRTC,…
pipalot
  • 100
  • 1
  • 10
3
votes
1 answer

WebView2 Control Not in Toolbox

The previous question seemed to be about Xmarian which I am not privvy to but I installed the Microsoft.Web.WebView2 Package through NuGet and I have searched my Toolbox in VS 2017 and it is not there. When I visit the NuGet Manage NuGet Packages…
2
votes
1 answer

Why is WebView2 so slow to render a basic page with 1 line of text?

I am attempting to use WebView2 for showing some docs in my program, but it is soooo slow to render pages. (I'm not referring to the startup time of calling EnsureCoreWebView2Async. I am loading pages via the WebResourceRequested event. The dev…
Ben Zuill-Smith
  • 3,504
  • 3
  • 25
  • 44