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

Navigation Master-Detail using MvvmCross Forms

$
0
0

Hello guys,

I am having some problem in the nagivation between the Master ans Detail Page using MvvmCross Forms, the page opens up in blank.

class MasterPage : MasterDetailPage
{
    public MasterPage()
    {

        var masterContentPage = new MasterContentPage();

        masterContentPage.ListView.ItemSelected += (sender, e) => NavigateTo(e.SelectedItem as MasterPageItem);

        Master = masterContentPage;
        Detail = new PaymentMethodsListPage();
    }


    void NavigateTo(MasterPageItem menu)
    {
        Page displayPage = (Page)Activator.CreateInstance(menu.TargetType);

        Detail = displayPage;

        IsPresented = false;
    }
}

How can I bind my navigation to the ViewModel?

Thanks.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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