Windows phone 7 Microsoft.Phone.Controls.Toolkit无法使用指令导入

Windows phone 7 Microsoft.Phone.Controls.Toolkit无法使用指令导入,windows-phone-7,Windows Phone 7,我已经下载并安装了Microsoft.Phone.Controls.Toolkit,可以将其包含在xaml页面中,但无法将其包含在C#文件中(如“使用Microsoft.Phone.Controls.Toolkit”)。知道为什么会发生这种情况吗?…尝试构建并在添加后添加 使用Microsoft.Phone.Controls.Toolkit: xmlns:toolkit=“clr命名空间:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Cont

我已经下载并安装了Microsoft.Phone.Controls.Toolkit,可以将其包含在xaml页面中,但无法将其包含在C#文件中(如“使用Microsoft.Phone.Controls.Toolkit”)。知道为什么会发生这种情况吗?

…尝试构建并在添加后添加

使用Microsoft.Phone.Controls.Toolkit

xmlns:toolkit=“clr命名空间:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.toolkit”


添加上述代码后,您可以使用C#文件中的控件

是否添加了DLL作为项目的引用?

我按f6键构建项目,成功构建后,我尝试包括“使用Microsoft.Phone.Controls.Toolkit。但是它仍然没有被识别,当你说你可以在XAML页面中包含它时,这意味着什么?在调试模式下运行时,控件是否显示在页面上?另外,您能否确认已将工具箱添加到项目的引用中?