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; }
void Instance_ShakeGesture(object sender, ShakeGestureEventArgs e) { Deployment.Current.Dispatcher.BeginInvoke(() => { if (shown == false) { Reveal.Begin(); shown = true; } }); }
private void ToggleCard() { if (shown == true) { Hide.Begin(); shown = false; } else { Reveal.Begin(); shown = true; } }