private void Btn_Template_Click(object sender, RoutedEventArgs e) { FileManager.CreateFile((sender as Button).Tag.ToString(), FileName); FadeBackgroundOut.Begin(); AnimateNameOut.Begin(); AnimateTemplateOut.Begin(); LoadFiles(); }
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; } }