Is there any way I can detect the designer mode or runtime mode of an WP7 project? Currently I reference Application.Current... in a ViewModel and apparently the View does not like it in designer. The XAML designer throws exception. It works fine in runtime. So I am thinking I can do some if/else in ViewModel to workaround this if I know it's in designer mode.
Thanks!
Simple. This is the same as it is in Silverlight:
DesignerProperties.IsInDesignTool
You mean something like DesignerProperties.IsInDesignTool?
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