I am using Windows 10 to learn Swift. I THINK I created a new project in WPF. When I put a WebView into the Window1.xaml. It prompt error when I run it. It just modified from a simple hello world program. Thank you.
That said, I’m not familiar with he control, so I cannot comment further. But in general, any WPF-compliant third party controls will work with Swift just as they would with VC#.
This should workmen Water, too; you can add the package reference via “Add References” and selecting the “NuGet Packages” tab. You will want something in the XAML like:
Note that it seems the Microsoft.Toolkit.Wpf.UI.Controls.WebView package only support .NET 4.6.2 or later, so you’ll need to increase the Target Framework setting of the default project (with is 4.5). Or use .NET Core.
Thank you for your reply. I have not nuget tab in my Silver - Water. I think I don’t have .Net 4.6.2 when checking with wmic command. I got do not exist error when run your program.
Thank you for your reply. I was tire yesterday, so hadn’t turn on my computer. Surprisingly, it works today. The Nuget tab appear and not dim.
Thank you