Hello,
Welcome to our Microsoft Q&A platform!
Isn't there any way to use OnOptionsItemSelected() override for my purpose? Why it was working when using ContentPage and not when using TabbedPage?
@Shantimohan Elchuri The OnOptionsItemSelected is to detect the click event of the toolbar. But when navigating to the 'Details', it is performed in the tabbedPage template. We should perform the navigation in the navigation stack instead. So try to get the MainPage to call the PushAsync
command.
private void Button_Clicked(object sender, EventArgs e)
{
App.Current.MainPage.Navigation.PushAsync(new Details());
}
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.