private void load() { NotificationOverlay notifications; dependencies.Cache(notifications = new NotificationOverlay()); ConfirmationOverlay confirmationOverlay; dependencies.Cache(confirmationOverlay = new ConfirmationOverlay()); ScreenStack screens = new ScreenStack(); screens.Push(new MainMenuScreen()); Add(new BasicContextMenuContainer { RelativeSizeAxes = Axes.Both, Child = new IWannaTooltipContainer { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { screens, notifications, confirmationOverlay } } }); }
private void ShowConfirmationOverlay(bool success) { var overlay = new ConfirmationOverlay(); if (!success) { overlay.SetType(ConfirmationOverlay.FailureAnimation); } else { overlay.SetType(ConfirmationOverlay.OpenOnPhoneAnimation); } overlay.ShowOn(Activity); }