AppStore.Templates.FlashCardPage.Flip_Click C# (CSharp) Method

Flip_Click() private method

Executed when the Flip Button is tapped. It flips the flash card in the view.
private Flip_Click ( object sender, RoutedEventArgs e ) : void
sender object Object Sender is a parameter called Sender that contains a reference to the control/object that raised the event.
e RoutedEventArgs RoutedEventArgs e is a parameter called e that contains the event data, see the RoutedEventArgs MSDN page for more information.
return void
        private void Flip_Click(object sender, RoutedEventArgs e)
        {
            if (isFlipped)
            {
                VisualStateManager.GoToState(this, "FlipCardBack", true);
                frontCard.Visibility = Visibility.Visible;
                backCard.Visibility = Visibility.Collapsed;
                isFlipped = false;
            }
            else
            {
                VisualStateManager.GoToState(this, "FlipCardFront", true);
                backCard.Visibility = Visibility.Visible;
                frontCard.Visibility = Visibility.Collapsed;
                isFlipped = true;
            }
        }