/// <summary> /// Checks if current application is in design mode, XAML view open in MS Blend or VS Designer. /// </summary> /// <remarks>This is useful to prevent loading of some code when in MS Blend or VS Designer.</remarks> public static bool IsInDesingMode(this Application app) { return(app.IsInDesignModeStatic()); }