private void HideAnimate() { Area start = Window.Area; Animation.Start(750, identity: Window, action: t => { Window.Move(start.Lerp(HiddenArea, Curves.FExpo(t))); t = 1 - Curves.Custom.FPower(10)(t); if (Window.Opacity > t) { Window.SetOpacity(t); } }); }
private void ShowAnimate() { Area start = Window.Area; Animation.Start(750, identity: Window, action: t => { Window.Move(start.Lerp(ActiveArea, 0.5 + Curves.FExpo(t) / 2)); t = Curves.Custom.FPower(10)(t); if (Window.Opacity < t) { Window.SetOpacity(t); } }); }