Once we have that setup we have to add a few code behind routines to properly setup the WebView2 temp folder etc. In order to have the class available we have to reference in a Nuget Package like so: The basic setup for our Page can look like this: Now, the trick is to show a WebView2 browser control in it, and use that to navigate to our web app, or something else that we want to show. Once we have these two instantiated, then we can basically show/hide our Dockable Panel. A subset of that is the IFrameworkElementCreator method and the Page object that it returns, while rest is just some general settings about where the Dockable Panel that is being created was meant to be shown etc.
0 Comments
Leave a Reply. |