Beispiel #1
0
        public StaticFullscreenPopupPage()
        {
            AnimationTranslationValue = App.ScreenSize.Height;

            var goNextButton = new Button
            {
                Text            = "go deeper",
                VerticalOptions = LayoutOptions.EndAndExpand,
            };

            goNextButton.Clicked  += (e, args) => NavigationExtension.PopupPush(new StaticFullscreenPopupPage());
            VerticalContentOptions = LayoutOptions.FillAndExpand;
            DismissableContent     = new PancakeView
            {
                VerticalOptions = LayoutOptions.FillAndExpand,
                BackgroundColor = Color.White,
                CornerRadius    = new CornerRadius(10, 10, 0, 0),
                Content         = new StackLayout
                {
                    VerticalOptions = LayoutOptions.Fill,
                    BackgroundColor = Color.White,
                    Padding         = 7,
                    Spacing         = 10,
                    Children        =
                    {
                        new BoxView
                        {
                            Color             = Color.LightGray,
                            WidthRequest      = 40,
                            HeightRequest     = 4,
                            CornerRadius      = 2,
                            HorizontalOptions = LayoutOptions.Center
                        },
                        new Label
                        {
                            Text              = "Pull to close",
                            LineBreakMode     = LineBreakMode.NoWrap,
                            HorizontalOptions = LayoutOptions.Center,
                            TextColor         = Color.Black
                        },
                        new Label
                        {
                            Text              = "Empty",
                            VerticalOptions   = LayoutOptions.FillAndExpand,
                            HorizontalOptions = LayoutOptions.CenterAndExpand,
                            TextColor         = Color.Black
                        },
                        goNextButton
                    }
                }
            };
        }
Beispiel #2
0
        public static void PushPopUp(string pageName)
        {
            var page = DependencyService.Get <IPopUp>().Page(pageName);

            NavigationExtension.PushPopupAsync(NavService, page);
        }
Beispiel #3
0
 public static void PopAllPopUp()
 {
     NavigationExtension.PopAllPopupAsync(NavService);
 }
Beispiel #4
0
 protected async void HidePopup()
 {
     await NavigationExtension.PopPopupAsync(null);
 }