Defines the starting location/size of a new element.
Inheritance: BoundsEasingAnimate
Beispiel #1
0
        /// <summary>
        /// Initialize a new instance of the FixedMetaPanelBase class.
        /// </summary>
        public FixedMetaPanelBase()
        {
            NewPositionAnimate newPos = new NewPositionAnimate();

            newPos.SetBinding(NewPositionAnimate.DurationProperty, ThisBinding("Duration"));
            newPos.SetBinding(NewPositionAnimate.EasingProperty, ThisBinding("Easing"));
            newPos.SetBinding(NewPositionAnimate.LocationProperty, ThisBinding("NewLocation"));
            newPos.SetBinding(NewPositionAnimate.SizeProperty, ThisBinding("NewSize"));
            Animates.Add(newPos);

            NewOpacityAnimate newOpacity = new NewOpacityAnimate();

            newOpacity.SetBinding(NewOpacityAnimate.DurationProperty, ThisBinding("Duration"));
            newOpacity.SetBinding(NewOpacityAnimate.EasingProperty, ThisBinding("Easing"));
            newOpacity.SetBinding(NewOpacityAnimate.StartProperty, ThisBinding("StartOpacity"));
            Animates.Add(newOpacity);

            MovePositionAnimate movePos = new MovePositionAnimate();

            movePos.SetBinding(MovePositionAnimate.DurationProperty, ThisBinding("Duration"));
            movePos.SetBinding(MovePositionAnimate.EasingProperty, ThisBinding("Easing"));
            Animates.Add(movePos);

            RemovePositionAnimate removePos = new RemovePositionAnimate();

            removePos.SetBinding(RemovePositionAnimate.DurationProperty, ThisBinding("Duration"));
            removePos.SetBinding(RemovePositionAnimate.EasingProperty, ThisBinding("Easing"));
            removePos.SetBinding(RemovePositionAnimate.LocationProperty, ThisBinding("RemoveLocation"));
            removePos.SetBinding(RemovePositionAnimate.SizeProperty, ThisBinding("RemoveSize"));
            Animates.Add(removePos);

            RemoveOpacityAnimate removeOpacity = new RemoveOpacityAnimate();

            removeOpacity.SetBinding(RemoveOpacityAnimate.DurationProperty, ThisBinding("Duration"));
            removeOpacity.SetBinding(RemoveOpacityAnimate.EasingProperty, ThisBinding("Easing"));
            removeOpacity.SetBinding(RemoveOpacityAnimate.EndProperty, ThisBinding("EndOpacity"));
            Animates.Add(removeOpacity);
        }
        /// <summary>
        /// Initialize a new instance of the FixedMetaPanelBase class.
        /// </summary>
        public FixedMetaPanelBase()
        {
            NewPositionAnimate newPos = new NewPositionAnimate();
            newPos.SetBinding(NewPositionAnimate.DurationProperty, ThisBinding("Duration"));
            newPos.SetBinding(NewPositionAnimate.EasingProperty, ThisBinding("Easing"));
            newPos.SetBinding(NewPositionAnimate.LocationProperty, ThisBinding("NewLocation"));
            newPos.SetBinding(NewPositionAnimate.SizeProperty, ThisBinding("NewSize"));
            Animates.Add(newPos);

            NewOpacityAnimate newOpacity = new NewOpacityAnimate();
            newOpacity.SetBinding(NewOpacityAnimate.DurationProperty, ThisBinding("Duration"));
            newOpacity.SetBinding(NewOpacityAnimate.EasingProperty, ThisBinding("Easing"));
            newOpacity.SetBinding(NewOpacityAnimate.StartProperty, ThisBinding("StartOpacity"));
            Animates.Add(newOpacity);

            MovePositionAnimate movePos = new MovePositionAnimate();
            movePos.SetBinding(MovePositionAnimate.DurationProperty, ThisBinding("Duration"));
            movePos.SetBinding(MovePositionAnimate.EasingProperty, ThisBinding("Easing"));
            Animates.Add(movePos);

            RemovePositionAnimate removePos = new RemovePositionAnimate();
            removePos.SetBinding(RemovePositionAnimate.DurationProperty, ThisBinding("Duration"));
            removePos.SetBinding(RemovePositionAnimate.EasingProperty, ThisBinding("Easing"));
            removePos.SetBinding(RemovePositionAnimate.LocationProperty, ThisBinding("RemoveLocation"));
            removePos.SetBinding(RemovePositionAnimate.SizeProperty, ThisBinding("RemoveSize"));
            Animates.Add(removePos);

            RemoveOpacityAnimate removeOpacity = new RemoveOpacityAnimate();
            removeOpacity.SetBinding(RemoveOpacityAnimate.DurationProperty, ThisBinding("Duration"));
            removeOpacity.SetBinding(RemoveOpacityAnimate.EasingProperty, ThisBinding("Easing"));
            removeOpacity.SetBinding(RemoveOpacityAnimate.EndProperty, ThisBinding("EndOpacity"));
            Animates.Add(removeOpacity);
        }