Expression Blend强制用户控件被隐藏 [英] Expression Blend Forcing User Controls to be hidden

查看:79
本文介绍了Expression Blend强制用户控件被隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我一段时间以来一直在使用C Sharp和WPF进行项目开发,最近,我的一些用户控件隐藏在Expression Blend中.我尝试全部显示,在gui中将可见性设置为Visible,清理项目构建,重建,重新启动等...似乎没有任何作用.

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.

推荐答案

找出解决方法.问题与某种程度上与以下事实有关:我从一个扩展UserControl的类扩展了几个UserControl,但该类本身没有XAML文件.

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.

将xaml根目录从MyCustomUserControl之类临时更改为UserControl将允许显示内容.完成编辑后,请改回根目录,以便您的程序可以运行.

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.

这篇关于Expression Blend强制用户控件被隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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