public override void OnSuspending(IScreen next) { base.OnSuspending(next); // important as there is a clock attached to a track which will likely be disposed before returning to this screen. intro.Expire(); }
public override void OnSuspending(ScreenTransitionEvent e) { base.OnSuspending(e); // ensure the background is shown, even if the TriangleIntroSequence failed to do so. background.ApplyToBackground(b => b.Show()); // important as there is a clock attached to a track which will likely be disposed before returning to this screen. intro.Expire(); }