Beispiel #1
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();
        }
Beispiel #2
0
        /// <summary>
        /// Runs the next transition in the list.
        /// </summary>
        private void runNextTransition()
        {
            if (m_listTransitions.Count == 0)
            {
                return;
            }

            // We find the next transition and Run it. We also register
            // for its completed event, so that we can start the next transition
            // when this one completes...
            Transition nextTransition = m_listTransitions.First.Value;

            nextTransition.TransitionCompletedEvent += onTransitionCompleted;
            nextTransition.Run();
        }
Beispiel #3
0
		protected override void OnLostFocus(EventArgs e) {
			Transition t = new Transition(transition);
			t.Add(this, "GlowIntensity", 0);
			t.Add(this, "GlowFeather", 0);
			t.Run();
			base.OnGotFocus(e);
		}
Beispiel #4
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();
 }