Error: Unknown element type WebView2
Posted: 11 May 2023, 10:09
Hi,
I wanna use WebView2 package in unity for my project with noesis gui however i got error. How can I fix it? Thanks in advance.
In blend side I installed webview2 from nuget then I added few lines of code on xaml side:


I wanna use WebView2 package in unity for my project with noesis gui however i got error. How can I fix it? Thanks in advance.
In blend side I installed webview2 from nuget then I added few lines of code on xaml side:
Code: Select all
<UserControl x:Class="WpfApp3_with_Unity.WpfApp3_with_UnityMainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:webview2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf">
<Grid Width="1280" Height="800">
<webview2:WebView2 Source="https://www.youtube.com"/>
</Grid>
</UserControl>