Web Viewを使う その1

公式ドキュメント

https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/webview

 

メニューの表示→ツールボックスから

コモンコントロール(またはすべてのWindowsフォーム)の中にWebBrowserがある

ドラッグしてコントロールに配置

f:id:yamekodev:20200721224805p:plain

 

参考

For Visual Studio 15.8 and later:

  1. Install the Microsoft.Toolkit.Forms.UI.Controls.WebView NuGet package.

  2. Open the Toolbox in Visual Studio. The WebView control appears in the General section of the Toolbox and you can drag it directly the designer.

https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/webview

 

追記

なんか違うよな・・・と思って調べたところ、webbrowserとwebviewは別物。

ツールボックスの検索窓にwebと入れるとwebviewが出てくる

f:id:yamekodev:20200721225542p:plain