Expression Blend Forcing User Controls to be hidden

佐手、 提交于 2019-12-25 03:46:07

问题


So I have been working on a project using C Sharp and WPF for a while now, and now recently several of my user controls are hidden in Expression Blend. I tried show all, setting visibility to Visible in the gui, cleaning the project build, rebuilding, restarting, etc... nothing seems to work.

As you can imagine, this is very frustrating, and any help would be greatly appreciated, thank you.


回答1:


Figured out a way around it. The problem is somehow related to the fact that I have several UserControls extended from a class that extends UserControl, but which has no XAML file itself.

Changing the xaml root from something like MyCustomUserControl temporarily to UserControl will allow the content to appear. Once done editing, change the root back so your program can run.



来源:https://stackoverflow.com/questions/3700129/expression-blend-forcing-user-controls-to-be-hidden

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