Hello,
Welcome to our Microsoft Q&A platform!
If there are other more simple solutions to implementing this
To display a view in Navigation Bar, you could just use the NavigationPage.TitleView
.
<ContentPage ...>
<NavigationPage.TitleView>
<SearchBar />
</NavigationPage.TitleView>
<ContentPage.Content>
...
</ContentPage.Content>
</ContentPage>
Check the doc: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/hierarchical#displaying-views-in-the-navigation-bar
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.