<div dir="ltr">Hello!<div><br></div><div style>Using WinForms and WPF is a little bit tricky, especially with third party components.</div><div><br></div><div style>For me (win7, and Visual Studio 2012), this settings works:</div>
<div style><br></div><div style>I&#39;m loading the RenderWindowControl only at run-time, eg:</div><div style><br></div><div style>aWindowsFormsHostControl.Child = new RenderWindowControl()<br></div><div style><br></div><div style>
and adding this code to the Constructor of you WPF-Window:</div><div style><br></div><div style><div>#if (DEBUG)</div><div>    if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) {</div><div>        return;</div>
<div>    }</div><div>#endif</div></div><div style><br></div><div style><br></div><div style>hth</div><div style><br></div><div style>mirko</div><div style> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jun 13, 2013 at 8:52 AM, Max <span dir="ltr">&lt;<a href="mailto:smapersmaper@gmail.com" target="_blank">smapersmaper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi VTKers,<br>
I am getting an exception:<br>
************* Exception Text **************<br>
System.Exception: error: could not get registered type - mteIndex=&#39;1&#39;<br>
classNameKey=&#39;&#39;<br>
   at Kitware.mummy.Runtime.Methods.GetConstructorInfo(UInt32 mteIndex)<br>
   at Kitware.mummy.Runtime.Methods.CreateWrappedObjectImpl(UInt32<br>
mteStatus, UInt32 mteIndex, UInt32 rawRefCount, IntPtr rawCppThis, Boolean<br>
callDisposalMethod, Boolean&amp; created)<br>
   at Kitware.mummy.Runtime.Methods.CreateWrappedObject(UInt32 mteStatus,<br>
UInt32 mteIndex, UInt32 rawRefCount, IntPtr rawCppThis, Boolean<br>
callDisposalMethod, Boolean&amp; found)<br>
   at Kitware.VTK.vtkRenderer.New()<br>
   at Kitware.VTK.RenderWindowControl.OnHandleCreated(EventArgs e)<br>
   at System.Windows.Forms.Control.WmCreate(Message&amp; m)<br>
   at System.Windows.Forms.Control.WndProc(Message&amp; m)<br>
   at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)<br>
   at System.Windows.Forms.ContainerControl.WndProc(Message&amp; m)<br>
   at System.Windows.Forms.UserControl.WndProc(Message&amp; m)<br>
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)<br>
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)<br>
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,<br>
IntPtr wparam, IntPtr lparam)<br>
<br>
When trying to open the xaml.<br>
I&#39;m hosting the render control of activiz (which is winforms) in wpf.<br>
It runs ok but when i&#39;m tryign to open the xaml it gives this exception.<br>
Someone maybe can help?<br>
<br>
Thank you,<br>
Max<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/render-control-hosting-in-wpf-tp5721366.html" target="_blank">http://vtk.1045678.n5.nabble.com/render-control-hosting-in-wpf-tp5721366.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Real programmers don&#39;t document; if it was<br>hard to write, it should be hard to understand.
</div>