8

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.

ColinE
  • 68,894
  • 15
  • 164
  • 232

1 Answers1

15

Try using the DesignerProperties.IsInDesignTool boolean property.

You will need to import the System.ComponentModel namespace to use this.

avanek
  • 1,649
  • 12
  • 20