Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

MasterDetailPage can not back

$
0
0

Hi all
I create a MasterDetailPage and insert a button on Master. When I click on button go to MySosRequests.
But in MySosRequestswhen I click on back of android app close. There is no back arrow on top left of MySosRequestsfor backing.
Whats wrong?

<MasterDetailPage.Master>
    <ContentPage Title="منو">
        <StackLayout Orientation="Vertical">
            <Button HorizontalOptions="Center" Text="درخواست های من" Command="{Binding GoToMySosRequests}" />
        </StackLayout>
    </ContentPage>
</MasterDetailPage.Master>

<MasterDetailPage.Detail Title="">
    <NavigationPage>
        <x:Arguments>
            <pages:MainView />
        </x:Arguments>
    </NavigationPage>
</MasterDetailPage.Detail>

using Bit.ViewModel;
using Prism.Navigation;

namespace Sanaap.App.ViewModels
{
public class MenuViewModel : BitViewModelBase
{
public BitDelegateCommand GoToMySosRequests { get; set; }

    public MenuViewModel(INavigationService navigationService)
    {
        GoToMySosRequests = new BitDelegateCommand(async () =>
        {
            await navigationService.NavigateAsync("MySosRequests");
        });
    }
}

}


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>