private void NewClick(object sender, EventArgs e) { txt_name.Text = string.Empty; ApplicationBar.IsVisible = false; FadeBackgroundIn.Begin(); AnimateNameIn.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; } }