Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use the Microsoft Edge WebView2 control in C# windows application

How can I use the Microsoft Edge WebView2 control in C# windows application using Visual Studio?

like image 904
Prasad-yadav Avatar asked Feb 04 '23 17:02

Prasad-yadav


1 Answers

Now in 2020 WebView2 supports both WPF and WinForms so you can try to use it in your application.

https://learn.microsoft.com/en-us/microsoft-edge/webview2/

https://learn.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/wpf

Basically you need to add Nuget package Microsoft.Web.WebView2 and then use WebView2 control.

like image 53
demonplus Avatar answered Feb 06 '23 07:02

demonplus