external Web Browser (CefSharp) render issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created a Addin for Inventor, here I have WPF window inside I have an external Web Browser (CefSharp == It is a browser rendering library from nuget) that has used to render a web page.
However I could not get the browser in the window. Here is the following code I have used to
public InventorWidget()
{
try
{
InitializeComponent();
CefSharp.CefSettings settings = new CefSharp.CefSettings();
settings.PackLoadingDisabled = true;
Cef.Initialize(settings);
webView = new CefSharp.Wpf.ChromiumWebBrowser();
main_grid.Children.Add(webView);
webView.IsBrowserInitializedChanged += model_PropertyChanged;
}
catch (Exception)
{
throw;
}
}
private void model_PropertyChanged(object sender, DependencyPropertyChangedEventArgs e)
{
try
{
webView.Address = "http://www.google.com";
}
catch (Exception)
{
throw;
}
}
the thing is I have used the same code for normal windows project. It is working fine .. Is it possible to get this done in Inventor,
Am I missing anything..
Please correct me, If am doing anything wrong.