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

XAML Custom base page not working - Can't load types

$
0
0

I have an issue trying to create a custom MyBasePage that will deal with some key behavior for all pages of the app.
For that, I have created a class "MyBasePage" that inherits from "ContentPage" in the namespace "MyProject.Pages.Generic".
And I try to create a new page "TempPage" in XAML. I have set the designer page inherits from "MyBasePage" class, and the issue is in the XAML using the "local"namespace.

<?xml version="1.0" encoding="UTF-8"?>
<local:MyBasePage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyProject.Pages.TempPage"
xmlns:local="clr-namespace:MyProject.Pages.Generic;assembly=MyProject">
</local:MyBasePage>

The error is
Error executing task XamlG: Can't load types from xmlns clr-namespace:MyProject.Pages.Generic;assembly=MyProject

Do you have any idea of the issue?
Thanks


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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