I am using TabbedPage
for navigation with tabs. All my Page
classes have just an empty default constructor and I load my data in the OnAppearing<
-
Solution:
You can get the index of currentPage in method OnCurrentPageChanged
And if the index equals 1(second page) , use the messagecenter
to send message to the page.Refer the following code .
in Tabbed Page
protected override void OnCurrentPageChanged()
{
base.OnCurrentPageChanged();
int index = Children.IndexOf(CurrentPage);
if (index == 1)
{
MessagingCenter.Send