Exemple #1
0
            public static async Task <Page2> CreateAsync()
            {
                var page = new Page2();
                await Task.Delay(TimeSpan.FromMilliseconds(200));                 // simulate loading of state from DB

                return(page);
            }
Exemple #2
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            if (_page2Tracker == null)
            {
                var page2 = new Page2();

                _page2Tracker = new WeakReference(page2, false);

                await Task.Delay(1000);

                await Navigation.PushModalAsync(page2);

                StartTrackPage2();
            }
        }
Exemple #3
0
            public async void LoadAsync()
            {
                ActivityIndicatorPage aip = new ActivityIndicatorPage();
                await Navigation.PushAsync(aip);

                var page1 = await Page1.CreateAsync();

                Navigation.InsertPageBefore(page1, aip);

                var page2 = await Page2.CreateAsync();

                Navigation.InsertPageBefore(page2, aip);

                var page3 = await Page3.CreateAsync();

                Navigation.InsertPageBefore(page3, aip);


                //// try to remove last page (with AcitivityIndicator) and here it bombs with the error: "java.lang.IndexOutOfBoundsException: index=3 count=2"
                await Navigation.PopAsync();
            }