09-21-2014 08:24 PM
Has anyone tried to use the CW3DGraph with a WPF project? I guess you would need a WIndowsFormHost? If so I am not sure how you would link it in. I have the control in my project reference but I don't konw how I would refer to it on a window.
Solved! Go to Solution.
09-22-2014 10:23 AM
Hello,
The CW3DGraph is an ActiveX Control. This article on MSDN gives steps on how to host an ActiveX cotnrol on WPF: MSDN Walkthrough: Hosting an ActiveX Control in WPF
The walkthrough uses Windows Media Player as an example, but still serves as a useful reference.
Hope this helps,
09-22-2014 10:56 AM
Great, thank you!
Also, in WPF code:
<Window
.
.
.
xmlns:AxCW3DGraphLib="clr-namespace:AxCW3DGraphLib;assembly=AxInterop.CW3DGraphLib">
...
<WindowsFormsHost x:Name="wfhGraph">
<AxCW3DGraphLib:AxCWGraph3D x:Name="ax3DSurfacePlot"/>
</WindowsFormsHost>