Beispiel #1
0
        static internal PropertyValue ToPropertyValue(TextShadow instance)
        {
            if (instance == null)
            {
                return(new PropertyValue());
            }

            return(new PropertyValue(instance.propertyMap));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 public static object Clone(TextShadow instance)
 {
     return(instance == null ? null : new TextShadow(instance.Color, instance.Offset, instance.BlurRadius));
 }