Silverlight Designer找不到自定义控件 [英] Silverlight Designer not finding custom controls

查看:104
本文介绍了Silverlight Designer找不到自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了Silverlight无法识别自定义控件或资源的问题.

I'm having an issue where silverlight doesn't recognise custom controls or resources.

我包含名称空间,并且intelisense可以识别该项目,应用程序可以正常运行,但是设计器会抛出以下错误.

I include the namespace and intelisense recognises the item, the application builds fine and runs fine however the designer throws the following error.

The type 'x' was not found. Verify that you are not missing an assembly reference 
and that all referenced assemblies have been built.

通常,我可以通过执行项目的清理/重建来解决问题.但是最近,这条路线无法解决问题.

Usually I'm able to sort out the issue by performing a clean/rebuild of the project. however recently this route has been unable to resolve the issue.

这是Visual Studio设计器的已知问题吗?有任何修复/解决方法吗?

Is this a known issue with the Visual Studio designer? are there any fixes/work arounds out there?

谢谢

我正在使用以下声明:

 xmlns:converters="clr-namespace:x.Classes.Converters"

,并使用以下内容引用该控件:

and referencing the control using the following:

  <converters:ReportTypeImageConverter x:Name="ReportTypeImage"/>

今天早上我登录后重新启动了Visual Studio,现在它可以识别控件了,这意味着我可以再次使用设计器.

Restarted visual studio this morning when I logged in and now its recognising the controls, which means I can use the designer again.

推荐答案

尝试转到项目属性并放置一些引用路径(.dll所在的文件夹)

Try to go to your Project Properties and put some Reference Paths(folders where you .dll are)

希望有帮助

这篇关于Silverlight Designer找不到自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆