public static AnimationSchedulingResult Schedule(this IAnimationStoryboard storyboard, AnimationSeconds timeNow) { AnimationSchedulingResult result; storyboard.TrySchedule(timeNow, out result).ThrowIfError(); return(result); }
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 static IAnimationStoryboard CreateRef(this IAnimationStoryboard objectRef) => ((IAnimationStoryboard)objectRef.CreateRef(typeof(IAnimationStoryboard)));
public static void Abandon(this IAnimationStoryboard storyboard) { storyboard.TryAbandon().ThrowIfError(); }
public static void Finish(this IAnimationStoryboard storyboard, AnimationSeconds completionDeadline) { storyboard.TryFinish(completionDeadline).ThrowIfError(); }
public static void Conclude(this IAnimationStoryboard storyboard) { storyboard.TryConclude().ThrowIfError(); }
internal void <.cctor> b__27_1(IAnimationStoryboard innerRefT, Delegate handler) { innerRefT.Updated -= ((EventHandler)handler); }
internal void <.cctor> b__27_0(IAnimationStoryboard innerRefT, Delegate handler) { innerRefT.StatusChanged -= ((ValueChangedEventHandler <AnimationStoryboardStatus>)handler); }