/// <summary> /// 结束当前动画的构建,返回到故事版上下文。 /// </summary> public StoryBoardFluentContext Over() { OnAnimationBuildOver(); StoryBoardFluentContext parent = null; if (Parent.TryGetTarget(out parent)) { return(parent); } throw new MemberAccessException("The parent context has been collected."); }
internal ColorKeyFrameTransitionAnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] ColorKeyFrameAnimation animation, [NotNull] String targetProperty) : base(parentStoryBoard, animation, targetProperty) { }
internal QuaternionEasyTransitionAnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] QuaternionKeyFrameAnimation animation, [NotNull] String targetProperty) : base(parentStoryBoard, animation, targetProperty) { }
internal AnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] CompositionAnimation animation, [NotNull] String targetProperty) { Parent = new WeakReference <StoryBoardFluentContext>(parentStoryBoard); CompositionAnimation = animation; TargetProperty = targetProperty; }
internal KeyFrameTransitionAnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] KeyFrameAnimation animation, [NotNull] String targetProperty) : base(parentStoryBoard, animation, targetProperty) { KeyFrameContexts = new List <IKeyFrameFluentContext>(); }
internal ExpressionAnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] Windows.UI.Composition.ExpressionAnimation animation, [NotNull] String targetProperty) : base(parentStoryBoard, animation, targetProperty) { }