simple question, does anyone know how to detect whether code is executed design-time with WP7? The usual Silverlight solution of HtmlPage.IsEnabled doesn't work in this context.
Try using the DesignerProperties.IsInDesignTool boolean property.
You will need to import the System.ComponentModel namespace to use this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With