Пример #1
0
 private void fadeOut()
 {
     Dispatcher.BeginInvoke(new Action(delegate()
     {
         DoubleAnimation pAnimation = UIHelpers.createDoubleAnimation(0, 1000, false);
         pAnimation.FillBehavior    = FillBehavior.HoldEnd;
         pAnimation.Completed      += delegate(object sender, EventArgs pEvent)
         {
             UIHelpers.animateCollapse(this, true);
         };
         this.BeginAnimation(FrameworkElement.OpacityProperty, pAnimation, HandoffBehavior.SnapshotAndReplace);
     }), null);
 }
Пример #2
0
 private void animateCollapse(FrameworkElement elem, bool remove)
 {
     UIHelpers.animateCollapse(elem, remove);
 }