Skip to content Skip to sidebar Skip to footer

Mvvmcross - Change Hamburger Menu To Back Button

I'm using the XPlatformMenus sample Android project available at https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenus What I want to do is, when the user navi

Solution 1:

Got this working by handling the Toolbar's NavigationClick event in the following manner:

    private void Toolbar_NavigationClick(object sender, Toolbar.NavigationClickEventArgs e)
    {
        var mainActivity = Activity as MainActivity;
        mainActivity?.OnBackPressed();
    }

Post a Comment for "Mvvmcross - Change Hamburger Menu To Back Button"