quintendc
quintendc

Reputation: 97

Xamarin FreshMVVM PublicKeyToken=null not found'

I'm working on a Xamarin forms app and i am using fresh MVVM framework. i added a button to a ContentPage that needs to open a new page.

the following error is:

System.Exception: 'Bux_Management.Pages.JournalsOverviewPage, Bux Management, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null not found'

my button in Xaml

<Button Text="Go to journal overview page" Command="{Binding ShowJournalOverviewPage}"/>

my command in my PageModel which inherits from FreshBasePageModel

        public Command ShowJournalOverviewPage
        {
            get
            {
                return new Command(async () => {
                    await CoreMethods.PushPageModel<JournalsOverviewPageModel>(null);
                });
            }
        }

my page models are in de folder "PageModels" and they inherit from "FreshBasePageModel" my pages are in the folder "Pages" and they inherit from "ContentPage"

Thanks in advance,

Upvotes: 0

Views: 579

Answers (2)

Annyan 12013
Annyan 12013

Reputation: 1

it is the problem with name space both the page and ViewModel to be in the same namespace

Upvotes: 0

quintendc
quintendc

Reputation: 97

Yes indeed it was a problem with the namespaces, first i used ViewModels and View as folders and changed it later to PageModel and Pages

Upvotes: 0

Related Questions