Ejemplo n.º 1
0
        public TimelineStory()
        {
            Opacity = 0;
            this.InitializeComponent();
            Loaded  += TimelineStory_Loaded;
            Loading += TimelineStory_Loading;

            DateContainer.Fade(duration: 0).StartAsync();
            TopLine.Fade(duration: 0).StartAsync();
            SummaryContainer.Fade(duration: 0).StartAsync();
            LikesContainer.Fade(duration: 0).StartAsync();
            ImageContainer.Scale(duration: 0,
                                 centerX: (float)ImageContainer.Width / 2,
                                 centerY: (float)ImageContainer.Height / 2,
                                 scaleX: 0.75f,
                                 scaleY: 0.75f).StartAsync();

            TitleLine.Scale(duration: 0,
                            scaleX: 0.6f,
                            scaleY: 0.6f)
            .Offset(offsetX: -30,
                    offsetY: 35,
                    duration: 0)
            .Fade(0.7f, duration: 0).StartAsync();
        }
Ejemplo n.º 2
0
        public void AnimateFocus()
        {
            DateContainer.Fade(duration: _animationDuration + 300, value: 1, delay: 50).StartAsync();
            TopLine.Fade(duration: _animationDuration + 300, value: 1, delay: 50).StartAsync();
            SummaryContainer.Fade(duration: _animationDuration + 300, value: 1, delay: 50).StartAsync();
            LikesContainer.Fade(duration: _animationDuration + 300, value: 1, delay: 50).StartAsync();
            ImageContainer.Scale(duration: _animationDuration,
                                 centerX: (float)ImageContainer.Width / 2,
                                 centerY: (float)ImageContainer.Height / 2,
                                 scaleX: 1.2f,
                                 scaleY: 1.2f).StartAsync();

            TitleLine.Scale(duration: _animationDuration, scaleX: 1f, scaleY: 1f)
            .Offset(duration: _animationDuration)
            .Fade(1f, duration: _animationDuration)
            .StartAsync();
            this.Fade(1, duration: _animationDuration).Start();
        }
Ejemplo n.º 3
0
        public void AnimateFocusLost()
        {
            DateContainer.Fade(duration: _animationDuration).StartAsync();
            TopLine.Fade(duration: _animationDuration).StartAsync();
            SummaryContainer.Fade(duration: _animationDuration).StartAsync();
            LikesContainer.Fade(duration: _animationDuration).StartAsync();
            ImageContainer.Scale(duration: _animationDuration,
                                 centerX: (float)ImageContainer.Width / 2,
                                 centerY: (float)ImageContainer.Height / 2,
                                 scaleX: 0.6f,
                                 scaleY: 0.6f).StartAsync();

            TitleLine.Scale(duration: _animationDuration, scaleX: 0.6f, scaleY: 0.6f)
            .Offset(offsetX: -30,
                    offsetY: 35,
                    duration: _animationDuration)
            .Fade(0.7f, duration: _animationDuration)
            .StartAsync();
            this.Fade(0.7f, duration: _animationDuration).Start();
        }