Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone tried using the cw3dgraph in WPF?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(5,261 Views)
Solution
Accepted by topic author FoxGrove

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,

Taylor B.
National Instruments
Message 2 of 3
(5,245 Views)

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>

0 Kudos
Message 3 of 3
(5,238 Views)