Example #1
0
        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
                    }
                }
            });
        }
Example #2
0
        private void ShowConfirmationOverlay(bool success)
        {
            var overlay = new ConfirmationOverlay();

            if (!success)
            {
                overlay.SetType(ConfirmationOverlay.FailureAnimation);
            }
            else
            {
                overlay.SetType(ConfirmationOverlay.OpenOnPhoneAnimation);
            }

            overlay.ShowOn(Activity);
        }