RittenRA
RittenRA

Reputation: 33

open current view in the Android emulator

I am using Visual Studio Xamarin Forms, and I have two different views in a project called Favorits and MainPage. Every time I run the emulator it opens the MainPage view, even if the Favorits view is open.

Upvotes: 0

Views: 185

Answers (1)

waletoye
waletoye

Reputation: 364

What you want to do is set the Start ContentPage (or view) in you App.xaml.cs portable project.

public partial class App : Application
{
    public App()
    {
        InitializeComponent();

        //uncomment the one you need

        //MainPage = new Views.MainPage();

        //MainPage = new Views.Favorits();

    }
}

Hope this helps.

Upvotes: 1

Related Questions