Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

An exception of type 'System.ArgumentNullException' occurred in Xamarin.Forms.Platform.UAP.dll #51

Open
jhrendon40 opened this issue Jun 21, 2016 · 5 comments

Comments

@jhrendon40
Copy link

I get exception "An exception of type 'System.ArgumentNullException' occurred in Xamarin.Forms.Platform.UAP.dll but was not handled in user code
Additional information: Value cannot be null." in MainPage.xaml.cs. How this fix?

public sealed partial class MainPage : WindowsPage
{
public MainPage()
{
this.InitializeComponent();

        var start = Mvx.Resolve<MvvmCross.Core.ViewModels.IMvxAppStart>();
        start.Start();

        var presenter = Mvx.Resolve<IMvxViewPresenter>() as MvxFormsWindowsUWPPagePresenter;
        LoadApplication(presenter.MvxFormsApp);
}
@Cheesebaron
Copy link
Member

Thanks for opening this issue. Please use and fill out the issue template.

@jhrendon40
Copy link
Author

I Find this, in the UWP with ARM plataform do not get this error. Any other (any cpu, x86) get the Exception.

In the Exaple002 chage UWP proyect to plataform to X86, and get this expeption.

@Cheesebaron
Copy link
Member

What are you testing on? UWP/Windows 8.1 phones are only ARM. So I guess you are testing a desktop/tablet app in the appropriate sim?

@zuckerthoben
Copy link

zuckerthoben commented Aug 2, 2016

I have the same issue. Using VS 2015 Community, SDK 10586.

I changed the MainPage from ContentPage to MasterDetailPage and provided the Master and Detail Markup:


 <MasterDetailPage.Master>
    <pages:EmployeeIndexPage>
    </pages:EmployeeIndexPage>
  </MasterDetailPage.Master>

  <MasterDetailPage.Detail>
    <NavigationPage>
      <Label>Detail Label</Label>
    </NavigationPage>
  </MasterDetailPage.Detail>
</MasterDetailPage>

The MasterPage implements the Title Property. I followed this site: https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/master-detail-page/

@joagwa
Copy link

joagwa commented Sep 13, 2016

@zuckerthoben are your Viewmodels in a separate project to your Views?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants