public static bool IsInDesignMode(this System.Windows.Forms.Control control) { return ResolveDesignMode(control) || (LicenseManager.UsageMode == LicenseUsageMode.Designtime); }