TalGav
TalGav

Reputation: 53

Change main page of TabbedPage, Xamarin.iOS

I want to set the Heart screen as the first shown page when entering the whole TabbedPage, I would be happy if anyone can help me with that. Thanks

Each icon is a blank content page title:

Upvotes: 0

Views: 109

Answers (1)

Liyun Zhang - MSFT
Liyun Zhang - MSFT

Reputation: 14224

You can set the current page as the page you want in the construction method of the tabbedpage. Such as:

public TabbedPage1()
    {
        InitializeComponent();
        this.CurrentPage = Children[2];
    }

Upvotes: 1

Related Questions