/// <summary>
 /// Handles the MouseLeave event on the TextBlock with corresponding ConverterCard as DataContext
 /// </summary>
 /// <param name="sender">TextBlock the mouse is no longer hovering over</param>
 /// <param name="e">The parameter is not used.</param>
 private void ConverterCard_MouseLeave(object sender, MouseEventArgs e)
 {
     if (this.DataContext is InlineDialogPage_ChooseAnotherCardVM)
     {
         InlineDialogPage_ChooseAnotherCardVM inlineDialogPageChooseAnotherCardVM = this.DataContext as InlineDialogPage_ChooseAnotherCardVM;
         inlineDialogPageChooseAnotherCardVM.MouseOverConverterCard = null;
     }
 }
 /// <summary>
 /// Handles the MouseEnter event on the TextBlock with corresponding ConverterCard as DataContext
 /// </summary>
 /// <param name="sender">TextBlock the mouse is now hovering over</param>
 /// <param name="e">The parameter is not used.</param>
 private void ConverterCard_MouseEnter(object sender, MouseEventArgs e)
 {
     if (this.DataContext is InlineDialogPage_ChooseAnotherCardVM)
     {
         InlineDialogPage_ChooseAnotherCardVM inlineDialogPageChooseAnotherCardVM = this.DataContext as InlineDialogPage_ChooseAnotherCardVM;
         TextBlock textBlock = sender as TextBlock;
         inlineDialogPageChooseAnotherCardVM.MouseOverConverterCard = textBlock.DataContext as ConverterCard;
     }
 }
        /// <summary>
        /// Handles the SelectedItemChanged event on the Choose Another Card ListBox
        /// </summary>
        /// <param name="sender">The ListBox firing the event</param>
        /// <param name="e">The parameter is not used.</param>
        private void cardsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (this.DataContext is InlineDialogPage_ChooseAnotherCardVM)
            {
                InlineDialogPage_ChooseAnotherCardVM inlineDialogPageChooseAnotherCardVM =
                    this.DataContext as InlineDialogPage_ChooseAnotherCardVM;
                ListBox listBox = sender as ListBox;

                if (listBox.SelectedItem is ConverterCard)
                {
                    inlineDialogPageChooseAnotherCardVM.SelectedConverterCard = listBox.SelectedItem as ConverterCard;
                }
            }
        }