Example #1
0
        //Animations
        public void AllRectanglesLoaded()
        {
            //animation code
            DoubleAnimation structsRectangle = new DoubleAnimation()
            {
                From     = 0,
                To       = 920,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation tupleRectangle = new DoubleAnimation()
            {
                From     = 0,
                To       = 920,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation lambdaRectangle = new DoubleAnimation()
            {
                From     = 0,
                To       = 920,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation propertiesRectangle = new DoubleAnimation()
            {
                From     = 0,
                To       = 920,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };



            //calling the animation code

            //reffering to the XAML objects
            StructsRec.BeginAnimation(WidthProperty, structsRectangle);
            TuplesRec.BeginAnimation(WidthProperty, tupleRectangle);
            LambdaRec.BeginAnimation(WidthProperty, lambdaRectangle);
            PropertiesRec.BeginAnimation(WidthProperty, propertiesRectangle);
        }
Example #2
0
        public void AllRectanglesUnloaded()
        {
            DoubleAnimation structsRectangle = new DoubleAnimation()
            {
                From     = 920,
                To       = 0,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation tupleRectangle = new DoubleAnimation()
            {
                From     = 920,
                To       = 0,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation lambdaRectangle = new DoubleAnimation()
            {
                From     = 920,
                To       = 0,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };
            DoubleAnimation propertiesRectangle = new DoubleAnimation()
            {
                From     = 920,
                To       = 0,
                Duration = TimeSpan.FromSeconds(1),

                EasingFunction = new QuinticEase()
            };

            StructsRec.BeginAnimation(WidthProperty, structsRectangle);
            TuplesRec.BeginAnimation(WidthProperty, tupleRectangle);
            LambdaRec.BeginAnimation(WidthProperty, lambdaRectangle);
            PropertiesRec.BeginAnimation(WidthProperty, propertiesRectangle);
        }