Navigation between pages (Android)

Asked

Viewed 59 times

1

using Android.App;
using Android.Widget;
using Android.OS;
using System;

namespace ValModas
{
    [Activity(Label = "ValModas", MainLauncher = true)]
    public class MainActivity : Activity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
        }

        private async void Button_OnClicked (object sender, EventArgs e)
        {
            await Navigation.PushAsync(new PageFem());
        }
    }
}

I’m trying to get you to call another page, how can I?

  • 1

    what’s happening when you call Navigation.Pushasync ?

  • 1

    I found a solution using "Intent," thank you

1 answer

1

private void BtnAcessorios_Click(object sender, EventArgs e)
    {
        var LoginAces = new Intent(this, typeof(AcesActivity));
        StartActivity(LoginAces);
    }

That was the solution I found to this problem

Browser other questions tagged

You are not signed in. Login or sign up in order to post.