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 名前空間をインポートする必要があります。