/// <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.");
        }
Beispiel #2
0
 internal ColorKeyFrameTransitionAnimationFluentContext([NotNull] StoryBoardFluentContext parentStoryBoard, [NotNull] ColorKeyFrameAnimation animation, [NotNull] String targetProperty) : base(parentStoryBoard, animation, targetProperty)
 {
 }
Beispiel #3
0
 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;
 }
Beispiel #5
0
 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)
 {
 }