Silverlight Designer not finding custom controls

試著忘記壹切 提交于 2019-12-13 06:09:57

问题


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

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.

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

Thanks

EDIT:

I'm using the following declaration:

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

and referencing the control using the following:

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

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


回答1:


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

Hope it Helps



来源:https://stackoverflow.com/questions/9785141/silverlight-designer-not-finding-custom-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!