private void EnableSnapshot_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = (Stage == Stage.Stopped || Stage == Stage.Snapping || Stage == Stage.Paused) && OutterGrid.IsEnabled; }