public bool IsVisible(IPropertyBag properties) { if (base.CompareFromContext(properties, "UserMode", "1") != 0) // Runtime return true; else // DesignTime { bool allowDrag = properties.GetPropertyValue<bool>("AllowDrag"); return allowDrag; } }