Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何将ZedGraph控件添加到wpf中的工具箱?_C#_Visual Studio 2010_Zedgraph - Fatal编程技术网

C# 如何将ZedGraph控件添加到wpf中的工具箱?

C# 如何将ZedGraph控件添加到wpf中的工具箱?,c#,visual-studio-2010,zedgraph,C#,Visual Studio 2010,Zedgraph,我将zedgraph.dll添加到我的wpf应用程序中。在我把那个控件添加到工具箱之后。但它并没有添加到我的wpf应用程序工具箱中。但它添加了WinForm应用程序。有人能解决这个问题吗 xmlns:zed=“clr命名空间:ZedGraph;assembly=ZedGraph” 将窗口窗体集成添加到引用中 添加以下内容,例如..: <WindowsFormsHost Name="windowsFormsHost1" Margin="500,0,0,0"> <zed:ZedG

我将zedgraph.dll添加到我的wpf应用程序中。在我把那个控件添加到工具箱之后。但它并没有添加到我的wpf应用程序工具箱中。但它添加了WinForm应用程序。有人能解决这个问题吗

  • xmlns:zed=“clr命名空间:ZedGraph;assembly=ZedGraph”

  • 将窗口窗体集成添加到引用中

  • 添加以下内容,例如..:

    <WindowsFormsHost Name="windowsFormsHost1" Margin="500,0,0,0">
    
    <zed:ZedGraphControl x:Name="graph"
                                 Width="500"
                                 Height="320" />
    </WindowsFormsHost>