public override string ConvertToString(object value) { if (value == null) { return(string.Empty); } var shadow = (Shadow)value; string result = shadow.BlurRadius.ToString() + " | " + shadow.Color.ToString(); result += " | " + (shadow.Offset == null ? "0, 0" : Vector2TypeConverter.ToString(shadow.Offset)); result += " | " + (shadow.Extents == null ? "0, 0" : Vector2TypeConverter.ToString(shadow.Extents)); return(result); }
public override string ConvertToString(object value) { if (value == null) { return(string.Empty); } var imageShadow = (ImageShadow)value; string result = imageShadow.Url; result += " / " + (imageShadow.Offset == null ? "0, 0" : Vector2TypeConverter.ToString(imageShadow.Offset)); result += " / " + (imageShadow.Extents == null ? "0, 0" : Vector2TypeConverter.ToString(imageShadow.Extents)); return(result); }