我正在尝试将Windows Phone 7应用程序移植到Windows 8.1和Windows Phone 8.1的新Universal App项目中。我安装了VS2013 Ultimate和Update 2 RC(包括8.1 SDK)。但是,我不明白为什么我不能使用Panorama控件。它被删除了吗?
1) Panorama is not supported in a Window Phone project
2) The type "Panorama" was not found. Verify that you are not missing
an assembly reference and that all referenced assemblies have been built.
3) Unknown type "Panorama" in XML namespace
http://schemas.microsoft.com/winfx/2006/xaml/presentation"
答案 0 :(得分:2)
您需要使用Hub
控件。
Windows Phone 8.1 for Developers – What controls are new
<Hub Header="My header">
<HubSection Header="My sub header">
<DataTemplate>
<Grid />
</DataTemplate>
</HubSection>
<HubSection Header="My sub header 2">
<DataTemplate>
<Grid />
</DataTemplate>
</HubSection>
</Hub>