Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to set selected tab in tabbed page - xamarin forms

$
0
0

Hi Everyone,

I am new to xamarin, and i am working with tabbed page with Android and Ios.

There is a requirement to add a tab between the tabbed pages, and upon clinking it need to do some functionalities and get back to home tab.

I am able to do the functionalities and set the home tab back using the following code.

protected override void OnCurrentPageChanged()
{
base.OnCurrentPageChanged();
if (this.CurrentPage != null && this.CurrentPage.ClassId == "some id")
{
...some codes
CurrentPage = Children[0];
}
}

It is loading the home page content, but the selected tab (Highlighting) was not updated.

Can anyone help me out ?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>