Reputation: 8823
I have bits of javascript that causes problems when viewed in Blend for Visual Studion 2012. I want to have a simple check for design mode so that I can skip the code when viewed in the Blend Design Surface.
Upvotes: 3
Views: 259
Reputation: 8823
I tweeted this question and got an answer from my peers really quick.
var isInDesignMode = Windows.ApplicationModel.DesignMode.designModeEnabled;
Upvotes: 9