Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect DesignTime in WP7 code

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.

like image 509
ColinE Avatar asked Jan 28 '11 12:01

ColinE


1 Answers

Try using the DesignerProperties.IsInDesignTool boolean property.

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

like image 136
avanek Avatar answered Oct 16 '22 13:10

avanek