How to open MasterPage while clicking an Icon from DetailPage ? RRS feed

  • Question

  • User369473 posted

    Can anyone help me please I am a begginer, I created MasterDetail Page with XAML code!

    Wednesday, June 27, 2018 8:26 PM

All replies

  • User180523 posted

    Page navigation documentation https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/

    Wednesday, June 27, 2018 8:38 PM
  • User369473 posted

    @ClintStLaurent said: Page navigation documentation https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/

    No detail about other icon...I have my own icon in Detail Page , and I want when I click that icon to shown the MasterPage

    Wednesday, June 27, 2018 8:47 PM
  • User180523 posted

    Ok. So do that. The page I linked shows you how to push pages... Shows how to set a completely new MainPage if you like. You're going to have to read and learn and comprehend and do some experiments. Nobody is going to give you copy/paste code that is targeted for your exact needs. Nobody will write your code for you - especially when it is clear you haven't read basic documentation nor made any really effort of your own first.

    Wednesday, June 27, 2018 8:54 PM
  • User2148 posted

    I think you have to set

    IsPresented = true;
    Wednesday, June 27, 2018 9:13 PM
  • User369473 posted

    private void TapGestureRecognizer_Tapped(object sender, EventArgs e) { //No IsPresent proporty ? }

    Thursday, June 28, 2018 9:29 AM
  • User369473 posted

    I found the solution for those who have this probem... Just add this line of code in your Gesture

    var mainPage = (Application.Current.MainPage as NavigationPage).CurrentPage; (mainPage as MasterDetailPage).IsPresented = true;

    Thursday, June 28, 2018 10:11 AM