Beispiel #1
0
 private Int32 GetScreenOffset()
 {
     if (State == UIPanelState.Opening)
     {
         return(Width - (Int32)(Width * Easings.EaseOutBounce(TransitionPosition)));
     }
     if (State == UIPanelState.Closing)
     {
         return((Int32)(Width * Easings.EaseInSin(1.0f - TransitionPosition)));
     }
     return(0);
 }