Exemple #1
0
 void Update(float progress, UIOffset offset)
 {
     if (context != null &&             // we must have a valid context for updates
         ((progress != transitionLayout.TransitionProgress) || (offset != transitionLayout.Offset)))
     {
         transitionLayout.SetOffset(offset);
         transitionLayout.SetTransitionProgress(progress);
         transitionLayout.InvalidateLayout();
         context.UpdateInteractiveTransition(progress);
     }
 }
        void Update(float progress, UIOffset offset)
        {
            if (context == null)
            {
                return;
            }

            if ((progress != transitionLayout.TransitionProgress) || (offset != transitionLayout.Offset))
            {
                transitionLayout.SetOffset(offset);
                transitionLayout.SetTransitionProgress(progress);
                transitionLayout.InvalidateLayout();
                context.UpdateInteractiveTransition(progress);
            }
        }