Example #1
0
        private void SlideCommandHandler(object parameter)
        {
            Reveal.Stop();
            Hide.Stop();

            if (parameter is bool)
            {
                if (!_shouldShow)
                {
                    Hide.Begin();
                    _shouldShow = true;
                }

                return;
            }

            if (_shouldShow)
            {
                Reveal.Begin();
            }
            else
            {
                Hide.Begin();
            }

            _shouldShow = !_shouldShow;
        }
Example #2
0
 void Instance_ShakeGesture(object sender, ShakeGestureEventArgs e)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         if (shown == false)
         {
             Reveal.Begin();
             shown = true;
         }
     });
 }
Example #3
0
 private void ToggleCard()
 {
     if (shown == true)
     {
         Hide.Begin();
         shown = false;
     }
     else
     {
         Reveal.Begin();
         shown = true;
     }
 }