添加自定义用户控件进行混合
我在我的“共享”项目中创建了一个自定义用户控件 - 它效果很好 (感谢 HB) 即我进入 XAML 并说
xmlns:controls="clr-namespace:Shared.UserControls;assembly=Shared"
然后我说(布局中的某个位置)
<controls:MyPanel Grid.Row="1"/>
所有这些都很好,当我在 Blend 中打开项目时,我可以看到它呈现但是它显示有一个小黄色图标,并且它不断告诉我我需要重建项目
我尝试过(并且确实构建了),但错误并没有消失,而且当我搜索时因为它没有显示 - 这显然意味着我无法将其拖放到屏幕上,我错过了什么 - 为什么不能混合看到这个?有什么表情混合忍者吗?显然,blend 知道程序集,为什么它看不到控件?有什么东西可以添加到“库”中吗?
谢谢!
I have a custom user control that I have created, in my "shared" project - it works great (thanks to H.B.) i.e. I go in the XAML and say
xmlns:controls="clr-namespace:Shared.UserControls;assembly=Shared"
Then I say (somewhere in the layout)
<controls:MyPanel Grid.Row="1"/>
All this is fine and when I open the project in blend I can see it rendered however it is shown with a little yellow icon and it keeps telling my I need to rebuild the project
I tried that (and it does build) but the error doesn't go away, plus when I search for it it doesn't show up - which obviously means I can't drag and drop it onto the screen, what am I missing - why can't blend see this? any expression blend ninja's out there? Obviously blend knows about the assembly why won't it see the control? Is there some what to add it to the "Library"?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论