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

FreshMVVM error on FreshPageModelResolver.ResolvePageModel

$
0
0

I am getting an exception on this line var page = FreshPageModelResolver.ResolvePageModel();

telling me with that

System.Exception: myAppplication.TestPage, myAppplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null not found

here is how my code looks like. I followed everything in this video tutorial
Can anybody help me on this?

            public App()
            {          
                LoadBasicNav();
            }

    public void LoadBasicNav()
            {
                var page = FreshPageModelResolver.ResolvePageModel<TestPageModel>();
                var basicNavContainer = new FreshNavigationContainer(page);
                MainPage = basicNavContainer;
            }


    namespace myApplication
    {
       public class TestPageModel : FreshBasePageModel
        {

            public TestPageModel()
            { }

            public override void Init(object initData)
            {
                base.Init(initData);
            }
        }
    }


namespace myApplication
{
    public partial class Test: ContentPage
    {
        public Workouts()
        {
            InitializeComponent();
        }
    }
}

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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