![]() ![]() Isaac Rodriguez's AutoCAD Civil 3D developer blog Our DevBlog for Design, Lifecycle and Simulation technologies.Ĭyrille Fauvel's Maya platform developer blog - Autodesk Media and Entertainment technology. Our DevBlog for Infrastructure Modeling technology APIs. Our DevBlog for Cloud and Mobile technologies with a strong emphasis on the Autodesk Forge APIs. Our DevBlog for AutoCAD and other platform technology APIs. Our DevBlog for Revit, Navisworks, AEC and BIM technology APIs. Please enable JavaScript if you would like to comment on this blog. You should now have the browser control show up in your custom tab! Lastly, to get this up and running, you would need the WebView2 runtime. If something goes wrong, we don't want the exception to bubble up to Vault Explorer. ![]() We need to cast it to our type.īrowserControl tabControl = e.Context.UserControl as BrowserControl The event args has our custom tab object. Void propertyTab_SelectionChanged(object sender, SelectionChangedEventArgs e) Next add the below code in the Selection Changed event of our custom tab. The propertyTab_SelectionChanged is called whenever our tab is active and the selectionįilePropertyTab.SelectionChanged += propertyTab_SelectionChanged Typeof(BrowserControl)) //type of our UserControl Create a DetailPaneTab list to return from methodĭetailPaneTab filePropertyTab = new DetailPaneTab("", the HelloWorldCommandExtension.cs in the HelloWorld sample, add the below lines of code in the DetailTabs() function. Now, in our Command Extension class, i.e. Next, open the UserControl file as Designer and add the WebView2 control as shown below:įor a complete step by step guide on using WebView2 with Windows forms, do take a look at the below article: To do so, navigate to Tools –> NuGet Package Manager –> Manage NuGet Packages for Solution, and install the WebView2 as shown below. The first step in our HelloWorld sample would be to add the WebView2 SDK. One of the quicker and easier ways to test this, would be using the HelloWorld sample that comes along with the Vault SDK. Now there is an alternative which is also Chromium based, i.e. Previously, in order to have a Chromium based browser control, you probably would have used CefSharp. ![]()
0 Comments
Leave a Reply. |