--- uid: Uno.Controls.WebView2 --- # WebView2 (WebView) > Uno Platform supports two `WebView` controls - the `WebView2` control and the legacy `WebView`. For new development, we strongly recommend `WebView2` as it will get further improvements in the future. `WebView2` is supported on all Uno Platform targets. ## Basic usage You can include the `WebView2` control anywhere in XAML: ```xaml ``` To manipulate the control from C#, first ensure that you call its `EnsureCoreWebView2Async` method: ```csharp await MyWebView.EnsureCoreWebView2Async(); ``` Afterward, you can perform actions such as navigating to an HTML string: ```csharp MyWebView.NavigateToString("

Hello world!

"); ``` ## Desktop support To enable `WebView` on the `-desktop` target, add the `WebView` Uno Feature in your `.csproj`: ```diff + WebView; ``` > [!IMPORTANT] > If your project's desktop builder in `Platforms/Desktop/Program.cs` uses `.UseWindows()`, you'll also need to add the `true` property for the integration to work. However, it is recommended to [migrate to `.UseWin32()`](xref:Uno.Development.MigratingToUno6) for better performance and reliability. ## WebAssembly support In case of WebAssembly, the control is supported via a native `