Exemple #1
0
 void CloseSwipeablePane()
 {
     if (!IsSwipeablePaneOpen)
     {
         CloseSwipeablePaneAnimation.Begin();
     }
     else
     {
         IsSwipeablePaneOpen = false;
     }
 }
Exemple #2
0
        public async void CloseSwipeablePane()
        {
            if (!IsSwipeablePaneOpen)
            {
                // workaround: fixes the problem that the close animation is sometimes not played
                await Task.Delay(10);

                if (CloseSwipeablePaneAnimation != null)
                {
                    CloseSwipeablePaneAnimation.Begin();
                }
            }
            else
            {
                IsSwipeablePaneOpen = false;
            }
        }
 private void CloseSwipeablePane()
 {
     if (!IsSwipeablePaneOpen)
     {
         try
         {
             CloseSwipeablePaneAnimation.Begin();
         }
         catch (Exception ex)
         {
             new TelemetryClient().TrackException(ex);
         }
     }
     else
     {
         IsSwipeablePaneOpen = false;
     }
 }