Windows phone 7 WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么?
WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么 我们可以使用这两个属性在设计时显示/隐藏某个控件,但WP7的FCL不包括它们 替代方案是什么 谢谢Windows phone 7 WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么?,windows-phone-7,design-time,toolbox,Windows Phone 7,Design Time,Toolbox,WP7中DesignTimeVisibleAttribute和ToolBoxItemAttribute的等效项是什么 我们可以使用这两个属性在设计时显示/隐藏某个控件,但WP7的FCL不包括它们 替代方案是什么 谢谢 简而言之:如何从Visual Studio的工具箱中隐藏WP7自定义控件???您可以尝试将此代码放入自定义控件的构造函数中: if (DesignerProperties.IsInDesignTool) { this.Visibility = Visibility.Hidd
简而言之:如何从Visual Studio的工具箱中隐藏WP7自定义控件???您可以尝试将此代码放入自定义控件的构造函数中:
if (DesignerProperties.IsInDesignTool)
{
this.Visibility = Visibility.Hidden;
}
我提供可分配的
属性生成器
ProvideMetadata属性
只需搜索这三个类,我就是这样修复的。不确定这是否是您要查找的答案,或者您必须使用属性,但您只需单击
对象和时间轴
窗口中控件旁边的隐藏
图标即可DesignTimeVisibleAttribute
是SL4的一项功能。谢谢,但我需要将其隐藏在Visual Studio的设计器中。谢谢。我应该说得更清楚,对不起。我想把它隐藏在VisualStudio的“工具箱窗口”中。