2

我有我的项目写在Silverlight 4,最近,我重新安装了系统,并安装了Silverlight 5,但是当我重新安装了“一切”我BusyIndi​​cator控件有问题。它确实看起来像这个控制从System.Windows.Controls.Toolkit中删除,并试图编译我的项目(仍针对Silverlight 4)失败,并报错:找不到什么组件包括BusyIndi​​cator控件

找不到类型'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和“计划Files \ Microsoft Silverlight的”看:找不到任何组件中,看起来像涉及到Silverlight控件工具箱.. 。

+0

您是否看过ToolBox - > Choose Items? –

回答

1

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

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

3

我刚刚在我的Visual Studio安装中添加了相同的Tools和Silverlight 5 ToolKit。我能够去到工具箱中右键单击,然后选择素ChooseItems我发现它有没有能够找到BusyIndi​​cator控件。

Namespace = System.Windows.Controls
Assembly Name = System.Windows.Controls.Toolkit
Directory = C:\Program files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11\Bin

enter image description here

+0

感谢您的帮助,这对于Silverlight 5项目非常有用。这也给了我继续寻找解决方案的动力。 – Budda

+0

@Budda欢迎您,很高兴有所帮助。 –

0

我instaled NuGet包,现在工作的权利。

PM> Install-Package SilverlightToolkit-All 
相关问题