Ejemplo n.º 1
0
        public static void run(object target, string strPropertyName, object destinationValue,
                               ITransitionType transitionMethod)
        {
            var transition = new Transition(transitionMethod);

            transition.add(target, strPropertyName, destinationValue);
            transition.run();
        }
Ejemplo n.º 2
0
        public Transition Convert(string s, object target)
        {
            var spl  = s.Split(' ');
            var prop = spl[0];
            var dur  = new TimeConverter().Convert(spl[1]);
            var typ  = spl[2];
            var des  = spl[3];

            ITransitionType t = null;

            switch (typ)
            {
            case "linear":
                t = new TransitionType_Linear(dur);
                break;

            case "ease-inout":
                t = new TransitionType_EaseInEaseOut(dur);
                break;

            case "bounce":
                t = new TransitionType_Bounce(dur);
                break;

            case "throwcatch":
                t = new TransitionType_ThrowAndCatch(dur);
                break;

            case "damping":
                t = new TransitionType_CriticalDamping(dur);
                break;

            default:
                t = new TransitionType_Linear(dur);
                break;
            }

            var r = new Transition(t);

            r.add(target, prop, des);
            return(r);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor. You pass in the object that holds the properties
 /// that you are performing transitions on.
 /// </summary>
 public Transition(ITransitionType transitionMethod)
 {
     m_TransitionMethod = transitionMethod;
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Sets the property passed in to the initial value passed in, then creates and
        /// immediately runs a transition on it. Also set an final action to execute when the transition ends
        /// </summary>
        public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod, EventHandler <Args> executeAtEnd)
        {
            Utility.setValue(target, strPropertyName, initialValue);
            Transition t = new Transition(transitionMethod);

            t.TransitionCompletedEvent += executeAtEnd;
            t.add(target, strPropertyName, destinationValue);
            t.run();
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the property passed in to the initial value passed in, then creates and
 /// immediately runs a transition on it.
 /// </summary>
 public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod)
 {
     Utility.setValue(target, strPropertyName, initialValue);
     run(target, strPropertyName, destinationValue, transitionMethod);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the property passed in to the initial value passed in, then creates and 
 /// immediately runs a transition on it.
 /// </summary>
 public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod)
 {
     Utility.setValue(target, strPropertyName, initialValue);
     run(target, strPropertyName, destinationValue, transitionMethod);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Creates and immediately runs a transition on the property passed in.
 /// </summary>
 public static void run(object target, string strPropertyName, object destinationValue, ITransitionType transitionMethod)
 {
     Transition t = new Transition(transitionMethod);
     t.add(target, strPropertyName, destinationValue);
     t.run();
 }
Ejemplo n.º 8
0
        /// <summary>
        /// Constructor. You pass in the object that holds the properties 
        /// that you are performing transitions on.
        /// </summary>
        public Transition(ITransitionType transitionMethod)
        {
			m_TransitionMethod = transitionMethod;
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Creates and immediately runs a transition on the property passed in.
        /// </summary>
        public static void Run(object target, string strPropertyName, object destinationValue, ITransitionType transitionMethod)
        {
            Transition t = new Transition(transitionMethod);

            t.Add(target, strPropertyName, destinationValue);
            t.Run();
        }
 /// <summary>
 /// Constructor. You pass in the object that holds the properties
 /// that you are performing transitions on.
 /// </summary>
 /// <param name="transitionMethod">The transition method.</param>
 public ZeroitPrideAnim(ITransitionType transitionMethod)
 {
     m_TransitionMethod = transitionMethod;
 }
        /// <summary>
        /// Creates and immediately runs a transition on the property passed in.
        /// </summary>
        /// <param name="target">The target.</param>
        /// <param name="strPropertyName">Name of the string property.</param>
        /// <param name="destinationValue">The destination value.</param>
        /// <param name="transitionMethod">The transition method.</param>
        public static void run(object target, string strPropertyName, object destinationValue, ITransitionType transitionMethod)
        {
            ZeroitPrideAnim t = new ZeroitPrideAnim(transitionMethod);

            t.add(target, strPropertyName, destinationValue);
            t.run();
        }
 /// <summary>
 /// Constructor. You pass in the object that holds the properties
 /// that you are performing transitions on.
 /// </summary>
 /// <param name="transitionMethod">The transition method.</param>
 public ZeroitTransitorEdit(ITransitionType transitionMethod)
 {
     m_TransitionMethod = transitionMethod;
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Sets the property passed in to the initial value passed in, then creates and 
 /// immediately runs a transition on it. Also set an final action to execute when the transition ends
 /// </summary>
 public static void run(object target, string strPropertyName, object initialValue, object destinationValue, ITransitionType transitionMethod, EventHandler<Args> executeAtEnd)
 {
     Utility.setValue(target, strPropertyName, initialValue);
     Transition t = new Transition(transitionMethod);
     t.TransitionCompletedEvent += executeAtEnd;
     t.add(target, strPropertyName, destinationValue);
     t.run();
 }