locked
how to create header bar with buttons for all pages including backbutton RRS feed

  • Question

  • User395450 posted

    I have created a header using a control template including some buttons.

    1. How to handle button event in app.xaml
    2. Each button clicks redirect to a specific page
    3. I need to add back button for getting the previous page
    Sunday, June 28, 2020 8:38 AM

Answers

  • User369978 posted

    How to handle button event in app.xaml.

    We need to handle button event in current page not app.xaml

    Each button clicks redirect to a specific page I need to add back button for getting the previous page

    NavigationPage + ToolbarItems do the trick .


    Refer to

    https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/toolbaritem . https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/hierarchical

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, June 29, 2020 8:32 AM