locked
Checking if running in designer?

    Question

  • In WPF, I call DesignerProperties.GetIsInDesignMode  to check if the code is executing in the designer, so I can avoid doing things that may break the designer.  Is there a similar function for Metro Style Apps?

    Monday, September 19, 2011 7:00 PM

Answers

  • Lance, you can use Windows.ApplicationModel.DesignMode.DesignModeEnabled to check if you are running in design mode. Hope this helps !!!!

    Monday, September 19, 2011 8:21 PM

All replies

  • Lance, you can use Windows.ApplicationModel.DesignMode.DesignModeEnabled to check if you are running in design mode. Hope this helps !!!!

    Monday, September 19, 2011 8:21 PM
  • That indeed helps.  Thanks!

     

    Lance

    Tuesday, September 20, 2011 1:34 PM