示例#1
0
 static KeyFrame <PathGeometry> HackPathGeometry(KeyFrame <PathGeometry> value) =>
 value.CloneWithNewValue(new PathGeometry(new Sequence <BezierSegment>(value.Value.BezierSegments[0]), isClosed: false));
示例#2
0
 /// <summary>
 /// Convert a <see cref="KeyFrame{T}"/> of <see cref="GradientStop"/>s to an equivalent <see cref="KeyFrame{T}"/>
 /// of <see cref="ColorGradientStop"/>s.</summary>
 /// <returns>An equivalent <see cref="KeyFrame{T}"/> of <see cref="ColorGradientStop"/>s.</returns>
 public static KeyFrame <Sequence <ColorGradientStop> > Optimize(KeyFrame <Sequence <GradientStop> > keyFrame)
 => keyFrame.CloneWithNewValue(new Sequence <ColorGradientStop>(Optimize(keyFrame.Value)));