Example #1
0
 private void txt_name_LostFocus(object sender, RoutedEventArgs e)
 {
     AnimateNameOut.Begin();
     if (!TemplateShowing)
     {
         FadeBackgroundOut.Begin();
     }
 }
Example #2
0
 protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
 {
     if (NameShowing)
     {
         AnimateNameOut.Begin();
         FadeBackgroundOut.Begin();
         e.Cancel = true;
     }
     if (TemplateShowing)
     {
         AnimateNameIn.Begin();
         AnimateTemplateOut.Begin();
         e.Cancel = true;
     }
 }