using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; internal static class DependencyObjectExtensions { public static bool IsInDesignMode(this DependencyObject obj) { return (DesignerProperties.GetIsInDesignMode(obj)); } }