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