Bug 35700 - error CS0234: The type or namespace name 'WindowPage' does not exist in the namespace 'Xamarin.Forms.Platform.WinRT' (are you missing an assembly reference?)
Summary: error CS0234: The type or namespace name 'WindowPage' does not exist in the n...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.5.1
Hardware: PC Windows
: --- normal
Target Milestone: UWP
Assignee: Bugzilla
Depends on:
Reported: 2015-11-09 14:47 UTC by fraser.baldwin
Modified: 2015-11-18 11:20 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description fraser.baldwin 2015-11-09 14:47:15 UTC
\obj\x86\Debug\MainPage.g.i.cs(13,67,13,77): error CS0234: The type or namespace name 'WindowPage' does not exist in the namespace 'Xamarin.Forms.Platform.WinRT' (are you missing an assembly reference?)

The assembly is referenced?  Any idea?

(Universal Windows Project)
Comment 1 fraser.baldwin 2015-11-09 14:48:39 UTC
I did follow these steps:

Once you have that setup, you will want to:
● Add a new “Blank App (Universal Windows)” project to your existing Xamarin.Forms
● Ensure the new project is configured to build and deploy in the configuration manager.
● Add the Xamarin.Form NuGet packages to the newly created project.
● Update Xamarin.Forms NuGets for another platform projects, and
● Configure the application by making the following changes to your UWP project code
Update App.xaml.cs
In OnLaunched under:
rootFrame.NavigationFailed += OnNavigationFailed;
Forms.Init (e);
Update MainPage.xaml
1. Remove all contents from the page.
2. Add a new xmlns of xmlns:forms=”using:Xamarin.Forms.Platform.WinRT” .
3. Update the root to <forms:WindowPage …> </forms:WindowPage>
Update MainPage.xaml.cs
public sealed partial class MainPage
public MainPage()
LoadApplication (new App());
Reference Your Portable Class Library
Don’t forget to reference your Xamarin.Forms PCL (if you are using PCLs).
Comment 2 Rui Marinho 2015-11-18 11:20:41 UTC
Please update to Xamarin.Forms 2.0 and on the new Universal Windows use this namespace