What I want to achieve is just to inherit UWP App class not from Windows.UI.Xaml.Application class, but from some base class, inherited from the "standard" one.
However, when I do it:
namespace MyNamespace
{
sealed partial class App : MyUwpBaseApplication
{
public App()
{
this.InitializeComponent();
}
}
}
and xaml:
<local:MyUwpBaseApplication
x:Class="MyNamespace.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyNamespace">
</local:MyUwpBaseApplication>
I receive both: the design time error in XAML designer as well as compilation error:
Error XDG0008 The name "MyUwpBaseApplication" does not exist in the namespace "using:MyNamespace". MyNamespace App.xaml 1
I need the base class to use MvvmCross and Xamarin.Forms. But the error I receive is generic, not related to any of those.
Visual Studio: 15.7. Windows: 10 Fall Creators Update.
How can I handle that?