Exemple #1
0
        YamlObject FromRadialGradientFill(RadialGradientFill content, YamlMap superclassContent)
        {
            var result = superclassContent;

            AddFromIRadialGradient(content, result);
            return(result);
        }
        YamlObject FromRadialGradientFill(RadialGradientFill content, YamlMap superclassContent)
        {
            var result = superclassContent;

            result.Add("OpacityPercent", FromAnimatable(content.OpacityPercent));
            result.Add("GradientStops", FromAnimatable(content.GradientStops, p => FromSequence(p, FromGradientStop)));
            return(result);
        }
Exemple #3
0
        XElement FromRadialGradientFill(RadialGradientFill content)
        {
            return(new XElement("RadialGradientFill", GetContents()));

            IEnumerable <XObject> GetContents()
            {
                foreach (var item in GetShapeLayerContentContents(content))
                {
                    yield return(item);
                }
            }
        }