Bug 34577 - Any xaml class named "BasePage" will be prefixed with "Xamarin.Forms." in the code-behind regardless of prefix
Summary: Any xaml class named "BasePage" will be prefixed with "Xamarin.Forms." in the...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-10-05 20:37 UTC by Ian Geoghegan
Modified: 2015-10-06 14:20 UTC (History)
6 users (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 Ian Geoghegan 2015-10-05 20:37:00 UTC
I have a class named BasePage, prefixed with a specific namespace - "Apollo.UI.Pages.Bases"

When I clean and compile, pages derived from my Base page, even when prefixed, have Xamarin.Forms pre-appended to them. This breaks the project.
Comment 1 Stephane Delcroix 2015-10-06 08:40:25 UTC
As your BasePage is not in the default namespace, it needs to be prefixed by the right xml namespace.

This was working in the past, but that behavior was wrong.
Comment 2 Ian Geoghegan 2015-10-06 11:29:16 UTC
Stephane, sorry I might be a little confused here. Are developers prevented from creating their own "BasePage" classes that derive from Xamarin.Forms.ContentPage?
Comment 3 Ian Geoghegan 2015-10-06 13:11:44 UTC
Something else must be going on. I tried to make a repro solution and can't dupe it. There must be some artifact in my solution or project file. Thanks.
Comment 4 Stephane Delcroix 2015-10-06 14:15:30 UTC
you just have to use 

    <local:BasePage .../>

instead of 

    <BasePage .../>

see http://forums.xamarin.com/discussion/comment/156711/#Comment_156711
Comment 5 Ian Geoghegan 2015-10-06 14:20:58 UTC
Thanks Stephane!