void notebook_AfterSave(object sender, NotebookEventArgs e) { DoubleAnimation anim = new DoubleAnimation(1, 0, new Duration(TimeSpan.FromMilliseconds(200))); anim.Completed += (s, e1) => { imgStatusSave.Visibility = System.Windows.Visibility.Hidden; }; imgStatusSave.BeginAnimation(Image.OpacityProperty, anim); }
void notebook_BeforeSave(object sender, NotebookEventArgs e) { imgStatusSave.ApplyAnimationClock(Image.OpacityProperty, null); imgStatusSave.Visibility = System.Windows.Visibility.Visible; }
void Workbench_NotebookClosed(object sender, NotebookEventArgs e) { }