Example #1
2
 /// <summary/>
 protected internal override TimeSpan DefineTimeline(ParallelTimeline parentTimeline, TimeSpan parentOffset) {
    var duration = TimeSpan.Zero;
    if (_hasCenterDifference) {
       var timeline = new VectorInterpolation(Interpolator, FromCenter, ToCenter, IsRelative, IsCumulative);
       parentTimeline.Children.Add(timeline);
       duration = DefineTimelineCore(timeline, parentOffset);
    }
    var fromX = _getValue(From, FromScaleX);
    var toX = _getValue(To, ToScaleX);
    if (fromX.CertainlyDifferent(toX)) {
       var timeline = new DoubleInterpolation(Interpolator, fromX, toX, IsRelative, IsCumulative);
       parentTimeline.Children.Add(timeline);
       duration = DefineTimelineCore(timeline, parentOffset);
    }
    var fromY = _getValue(From, FromScaleY);
    var toY = _getValue(To, ToScaleY);
    if (fromY.CertainlyDifferent(toY)) {
       var timeline = new DoubleInterpolation(Interpolator, fromY, toY, IsRelative, IsCumulative);
       parentTimeline.Children.Add(timeline);
       duration = DefineTimelineCore(timeline, parentOffset);
    }
    return duration;
 }
Example #2
0
 /// <summary/>
 protected internal override TimeSpan DefineTimeline(ParallelTimeline parentTimeline, TimeSpan parentOffset) {
    var duration = TimeSpan.Zero;
    if (_hasCenterDifference) {
       var timeline = new VectorInterpolation(Interpolator, From, To, IsRelative, IsCumulative);
       parentTimeline.Children.Add(timeline);
       duration = DefineTimelineCore(timeline, parentOffset);
    }
    return duration;
 }