找不到包含BusyIndi​​cator的程序集

时间:2013-01-01 05:44:02

标签: silverlight silverlight-4.0 silverlight-5.0 busyindicator

我的项目是用Silverlight 4编写的。最近我重新安装了我的系统并安装了Silverlight 5.但是当我重新安装“所有东西”时,我遇到了BusyIndi​​cator的问题。看起来这个控件从System.Windows.Controls.Toolkit中删除了,并且尝试编译我的项目(目标仍然是Silverlight 4)失败并显示错误:

找不到“ToolkitControls:BusyIndi​​cator”类型。

命名空间定义如下:

xmlns:ToolkitControls="clr-namespace:System.Windows.Controls;
      assembly=System.Windows.Controls.Toolkit" 

我在StackOverflow上看到了很多其他主题,看到人们广泛使用这个控件。这听起来好像我没有安装工具箱或错过任何组装。

我安装了以下组件:

我还需要其他东西吗?

我可能需要添加一些对我的项目的引用,以便已经安装了与我的项目链接的工具箱?

请指教,非常感谢任何帮助!

P.S。最近发现WPF的类似问题和解决方案(The type toolkit:BusyIndicator was not found)。但在我的情况下,我不知道要启动哪个程序集...我已经查看了GAC和“Program Files \ Microsoft Silverlight”:找不到任何与Silverlight控件工具箱相关的程序集。

2 个答案:

答案 0 :(得分:4)

我刚刚在Visual Studio安装中添加了相同的Tools和Silverlight 5 ToolKit。我可以通过右键单击ToolBox找到BusyIndi​​cator然后选择ChooseItems我发现它没有启用。

  

Namespace = System.Windows.Controls
  程序集名称= System.Windows.Controls.Toolkit
  Directory = C:\ Program files(x86)\ Microsoft SDKs \ Silverlight \ v5.0 \ Toolkit \ dec11 \ Bin

enter image description here

答案 1 :(得分:1)

嘿,答案很简单但不是很明显:

我应该为第4版Silverlight安装工具包(http://silverlight.codeplex.com/releases/view/43528)! :)