Reputation: 11
I added zedgraph.dll to my wpf application. There after i add that control to my toolbox. But it is not add to my toolbox in wpf application. But it add in WinForm Application. Anybody have solution for this problem?
Upvotes: 1
Views: 7063
Reputation: 21
xmlns:zed="clr-namespace:ZedGraph;assembly=ZedGraph"
Add WindowsFormsIntegration to your references
Add this for example..:
<WindowsFormsHost Name="windowsFormsHost1" Margin="500,0,0,0">
<zed:ZedGraphControl x:Name="graph"
Width="500"
Height="320" />
</WindowsFormsHost>
see http://sourceforge.net/p/zedgraph/discussion/392231/thread/86678940/
Upvotes: 2