Beispiel #1
0
        private void StartAnimBtn_Click(object sender, RoutedEventArgs e)
        {
            // Create an ease for use with animations later
            ExponentialEase ExpEaseOut =
                new ExponentialEase()
            {
                EasingMode = EasingMode.EaseOut
            };

            // Animate a UIElement along the X axis from 0 to 40
            Oli.MoveXOf(rect).From(0).To(40).For(0.3, OrSo.Secs).Now();

            // Rotate UIElement to 90 degrees
            EventToken rotating =
                Oli.Rotate(rect).To(90).For(0.3, OrSo.Secs).With(ExpEaseOut).Now();

            // Fade the opacity to 0 after the rotation finishes
            Oli.Fade(rect).To(0).For(0.3, OrSo.Secs).With(ExpEaseOut).After(rotating);

            // Run arbitrary code after the rotation too!
            Oli.Run(() =>
            {
                // Do things here!
            }).After(rotating);
        }
Beispiel #2
0
        public int CompareTo(Oid obj)
        {
            if (Oli == obj.Oli)
            {
                return(Id.CompareTo(obj.Id));
            }

            return(Oli.CompareTo(obj.Oli));
        }