Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单的问题,有谁知道如何检测代码是否在设计时使用 WP7 执行?HtmlPage.IsEnabled 的通常 Silverlight 解决方案在这种情况下不起作用。
尝试使用 DesignerProperties.IsInDesignTool 布尔属性。
您需要导入 System.ComponentModel 命名空间才能使用它。