2011-10-28 14 views
1

我想在我的Silverlight应用程序中实现图表。Silverlight ChartingToolKit未进入xaml页面

我已经在我的VS中安装了SL4。

问题是我没有得到chartingToolkit:图表控制在我的xaml页面。 给出错误说没有找到控件。

我忘了添加任何参考吗? 还是我的安装出了问题? 我必须下载其他插件吗?

感谢 萨贾德

回答

1

chartings控件从Silverlight工具包,需要先安装它。;) http://silverlight.codeplex.com/

+0

我已经安装了..;)。否则我将无法创建Silverlight应用程序。 – sajad

+0

你有这些参考吗? System.Windows.Controls.DataVisualization.Toolkit,System.Windows.Controls.Toolkit和System.Windows.Controls.Toolkit.Internals,还定义了xmlns:toolkit =“http://schemas.microsoft.com/winfx/2006/ xaml/presentation/toolkit“并尝试使用工具包:图 –

+0

将此添加到命名空间区域:) xmlns:toolkit =”clr-namespace:System.Windows.Controls.DataVisualization.Charting; assembly = System.Windows.Controls.DataVisualization .Toolkit“Thnx求助 – sajad

0

我已添加的组件,通过鑫提及。

System.Windows.Controls.DataVisualization.Toolkit,

System.Windows.Controls.Toolkit

System.Windows.Controls.Toolkit.Internals

但实际上解决我的问题通过将这添加到名称空间区域。

的xmlns:工具箱= “CLR-名称空间:System.Windows.Controls.DataVisualization.Charting;装配= System.Windows.Controls.DataVisualization.Toolkit”

,然后我可以使用工具包:图

:)

+0

你有没有看到我最后的评论?是的,你可以像上面展示的那样引用,但是最好是使用这个xmlns:toolkit =“schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit”,这样你就可以在工具包中提供一切做工具包:xxx,我的回答是更好的... –