private void AnimateBrushPreviewElementOpacity(double newOpacity, AnimationSeconds duration) { if (this.brushPreviewElementOpacity != null) { this.brushPreviewElementOpacity.AnimateValueTo(newOpacity, duration, AnimationTransitionType.SmoothStop); } }
private static void InitializeHandleOpacityStoryboard(IAnimationStoryboard storyboard, IAnimationVariable variable, double startOffsetPeriodFraction) { AnimationSeconds duration = 2.0; AnimationSeconds seconds2 = duration * startOffsetPeriodFraction; if (seconds2 != 0.0) { AnimationTransition transition2 = new ConstantAnimationTransition(seconds2); storyboard.AddTransition(variable, transition2); } AnimationKeyFrame startKeyFrame = storyboard.AddKeyFrameAtOffset(AnimationKeyFrame.StoryboardStart, seconds2); AnimationTransition transition = new SinusoidalFromRangeAnimationTransition(duration, 0.25, 1.5, duration, AnimationSlope.Decreasing); storyboard.AddTransition(variable, transition); AnimationKeyFrame endKeyFrame = storyboard.AddKeyFrameAfterTransition(transition); storyboard.RepeatBetweenKeyFrames(startKeyFrame, endKeyFrame, -1); }
public double InterpolateVelocity(AnimationSeconds offset) => base.innerRefT.InterpolateVelocity(offset);
public double InterpolateValue(AnimationSeconds offset) => base.innerRefT.InterpolateValue(offset);
public IAnimationTransition CreateSinusoidalTransitionFromVelocity(AnimationSeconds duration, AnimationSeconds period) => base.innerRefT.CreateSinusoidalTransitionFromVelocity(duration, period);
public IAnimationTransition CreateSmoothStopTransition(AnimationSeconds maximumDuration, double finalValue) => base.innerRefT.CreateSmoothStopTransition(maximumDuration, finalValue);
public IAnimationTransition CreateReversalTransition(AnimationSeconds duration) => base.innerRefT.CreateReversalTransition(duration);
public IAnimationTransition CreateSinusoidalTransitionFromRange(AnimationSeconds duration, double minimumValue, double maximumValue, AnimationSeconds period, AnimationSlope slope) => base.innerRefT.CreateSinusoidalTransitionFromRange(duration, minimumValue, maximumValue, period, slope);
public IAnimationTransition CreateLinearTransition(AnimationSeconds duration, double finalValue) => base.innerRefT.CreateLinearTransition(duration, finalValue);
public IAnimationTransition CreateDiscreteTransition(AnimationSeconds delay, double finalValue, AnimationSeconds hold) => base.innerRefT.CreateDiscreteTransition(delay, finalValue, hold);
public IAnimationTransition CreateCubicTransition(AnimationSeconds duration, double finalValue, double finalVelocity) => base.innerRefT.CreateCubicTransition(duration, finalValue, finalVelocity);
public IAnimationTransition CreateConstantTransition(AnimationSeconds duration) => base.innerRefT.CreateConstantTransition(duration);
public IAnimationTransition CreateAccelerateDecelerateTransition(AnimationSeconds duration, double finalValue, double accelerationRatio, double decelerationRatio) => base.innerRefT.CreateAccelerateDecelerateTransition(duration, finalValue, accelerationRatio, decelerationRatio);