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; }