问题
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?
回答1:
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/
来源:https://stackoverflow.com/questions/26756000/how-to-add-zedgraph-control-to-toolbox-in-wpf