diff Implab.Fx/AnimationHelpers.cs @ 192:f1da3afc3521 release v2.1

Слияние с v2
author cin
date Fri, 22 Apr 2016 13:10:34 +0300
parents d4e38929ce36
children
line wrap: on
line diff
--- a/Implab.Fx/AnimationHelpers.cs	Wed Sep 03 18:34:02 2014 +0400
+++ b/Implab.Fx/AnimationHelpers.cs	Fri Apr 22 13:10:34 2016 +0300
@@ -42,7 +42,13 @@
         {
             var anim = ctl.AnimateTransparency(0);
 
-            return anim.Play().DispatchToControl(ctl).Then(frm => frm.Close());
+            return anim
+                .Play()
+                .DispatchToControl(ctl)
+                .Then(frm => {
+                    frm.Close();
+                    return frm;
+                });
         }
 
         public static IPromise<T> OverlayFadeIn<T>(this Form that, T overlay) where T : Form