Example #1
0
        void GetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            var pair     = entry.GetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame);
            var valueSet = new[] { pair.First().Value, pair.Last().Value };

            if (control.BeginValue != valueSet[0])
            {
                control.BeginValue = valueSet[0];
            }

            if (control.EndValue != valueSet[1])
            {
                control.EndValue = valueSet[1];
            }

            if (entry.Mode != control.Mode)
            {
                control.Mode = entry.Mode;
            }

            if (entry.EaseIn != control.EaseIn)
            {
                control.EaseIn = entry.EaseIn;
            }

            if (entry.EaseOut != control.EaseOut)
            {
                control.EaseOut = entry.EaseOut;
            }

            if (entry.IterationDuration != control.IterationDuration)
            {
                control.IterationDuration = entry.IterationDuration;
            }
        }
Example #2
0
        void SetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            if (entry.Mode != control.Mode)
            {
                entry.Mode = control.Mode;
            }

            if (entry.EaseIn != control.EaseIn)
            {
                entry.EaseIn = control.EaseIn;
            }

            if (entry.EaseOut != control.EaseOut)
            {
                entry.EaseOut = control.EaseOut;
            }

            if (entry.IterationDuration != control.IterationDuration)
            {
                entry.IterationDuration = control.IterationDuration;
            }

            entry.SetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame, new[] { control.BeginValue, entry.Mode == AnimationMode.None ? control.BeginValue : control.EndValue });
        }
        void SetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            if (entry.Mode != control.Mode)
                entry.Mode = control.Mode;

            if (entry.EaseIn != control.EaseIn)
                entry.EaseIn = control.EaseIn;

            if (entry.EaseOut != control.EaseOut)
                entry.EaseOut = control.EaseOut;

            if (entry.IterationDuration != control.IterationDuration)
                entry.IterationDuration = control.IterationDuration;

            entry.SetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame, new[] { control.BeginValue, entry.Mode == AnimationMode.None ? control.BeginValue : control.EndValue });
        }
        void GetValueSet(AnimationEntryControl control, AnimationEntry entry)
        {
            var pair = entry.GetBeginEndFramePair(this.Caption.StartFrame, this.Caption.DurationFrame, this.CurrentFrame);
            var valueSet = new[] { pair.First().Value, pair.Last().Value };

            if (control.BeginValue != valueSet[0])
                control.BeginValue = valueSet[0];

            if (control.EndValue != valueSet[1])
                control.EndValue = valueSet[1];

            if (entry.Mode != control.Mode)
                control.Mode = entry.Mode;

            if (entry.EaseIn != control.EaseIn)
                control.EaseIn = entry.EaseIn;

            if (entry.EaseOut != control.EaseOut)
                control.EaseOut = entry.EaseOut;

            if (entry.IterationDuration != control.IterationDuration)
                control.IterationDuration = entry.IterationDuration;
        }