从泛型基类继承页面时发生XamlParseException

从泛型基类继承页面时发生XamlParseException,xaml,windows-8,microsoft-metro,windows-runtime,Xaml,Windows 8,Microsoft Metro,Windows Runtime,我目前正在使用以下确切代码: public类viewmodelawrepage:Page { } 公共类BaseMainMenuView :ViewModelAwarePage { } 公共密封部分类主菜单视图 :BaseMainMenuView { 公共主菜单视图() { this.InitializeComponent(); } } 和xaml: <local:BaseMainMenuView x:Name="pageRoot" x:Class="Tutor

我目前正在使用以下确切代码:

public类viewmodelawrepage:Page
{        
}
公共类BaseMainMenuView
:ViewModelAwarePage
{     
}
公共密封部分类主菜单视图
:BaseMainMenuView
{
公共主菜单视图()
{
this.InitializeComponent();
}
}
和xaml:

<local:BaseMainMenuView
x:Name="pageRoot"
x:Class="Tutorial.UI.WinRT.Views.MainMenuView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Tutorial.UI.WinRT.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<Grid Background="{StaticResource ApplicationPageBackgroundBrush}">

</Grid>

</local:BaseMainMenuView>
然后页面加载良好

我一点也不理解这个例外——我找到的所有Bing/Google点击都表明Silverlight 2存在问题


有人能解释错误吗?有人能建议我如何从通用页面继承吗?

Stuart请在发布预览中尝试,因为我相信这是可以解决的

我本周遇到了这个问题,我正在使用Win8 RTM和Visual Studio 2012 Update 1,有什么想法吗?