static internal PropertyValue ToPropertyValue(TextShadow instance) { if (instance == null) { return(new PropertyValue()); } return(new PropertyValue(instance.propertyMap)); }
internal TextShadow(TextShadow other) { propertyMap = new PropertyMap(); Color = other.Color; propertyMap["color"] = PropertyValue.CreateWithGuard(Color); Offset = other.Offset; propertyMap["offset"] = PropertyValue.CreateWithGuard(Offset); BlurRadius = other.BlurRadius; propertyMap["blurRadius"] = new PropertyValue(BlurRadius); }
internal TextShadow(TextShadow other, PropertyChangedCallback callback = null) { propertyMap = new PropertyMap(); Color = other.Color; propertyMap["color"] = PropertyValue.CreateWithGuard(Color); Offset = other.Offset; propertyMap["offset"] = PropertyValue.CreateWithGuard(Offset); BlurRadius = other.BlurRadius; propertyMap["blurRadius"] = new PropertyValue(BlurRadius); OnPropertyChanged = callback; }
public static object Clone(TextShadow instance) { return(instance == null ? null : new TextShadow(instance.Color, instance.Offset, instance.BlurRadius)); }