| title | Getting Started | |
|---|---|---|
| parent | WebView2 | |
| grand_parent | Tutorials | |
| nav_order | 1 | |
| permalink | /Tutorials/WebView2/Getting-Started | |
| redirect_from |
|
To create projects that use WebView2, your projects must include both the WinNativeForms package and the WebView2 package in your projects.
Both of these packages can be added through the Project > References menu option, which opens Project Settings at its Library References, on the Enabled Libraries tab. Select the Available Packages tab and ensure both packages are ticked, and then press Apply Changes, which restarts the compiler.
Once you've added the package references, you should find that the WebView2 control is now available to you in the form designer:
We use the WebView2 control just like any ordinary control:
There are lots of WebView2 properties and events to experiment with. The control's own properties are in the GENERAL group of the PROPERTIES panel:
For what each property does, see the WebView2 control class; for the underlying browser feature, try searching the official WebView2 documentation
If you prefer to start with a sample, have a look at Sample 1a, the card named WebView2 Examples in the Samples section of the new-project dialog:




