Esempio n. 1
0
        void ChangePage(object sender = null, EventArgs e = null)
        {
            if (turn >= 2)
            {
                Navigation.PopToRootAsync();
            }

            var stack = Navigation.NavigationStack;
            var GameP = new GamePage(data, 2);

            GameP.BindingContext = data;

            //((NavigationPage)Application.Current.MainPage).BarTextColor = Color.White;
            //NavigationPage.SetHasBackButton(GameP, false);
            //#if __IOS__
            //                    NavigationPage.SetHasBackButton(GameP, true);
            //#endif

            if (stack.Count <= 2)
            {
                Navigation.PushAsync(GameP);
            }
        }