external Web Browser (CefSharp) render issue

external Web Browser (CefSharp) render issue

Anonymous
Not applicable
1,513 Views
1 Reply
Message 1 of 2

external Web Browser (CefSharp) render issue

Anonymous
Not applicable

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.

1,514 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Have you solve this problem?  I have same issue with this control.