private void txt_name_LostFocus(object sender, RoutedEventArgs e) { AnimateNameOut.Begin(); if (!TemplateShowing) { FadeBackgroundOut.Begin(); } }
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; } }