在Windows Phone中使用语义缩放

Che*_*ese 5 c# windows-phone-8-emulator windows-phone-8.1 win-universal-app

我正在尝试发布VS 2013 Update 2并构建示例通用应用程序.

正如我所知,现在Windows Phone默认支持多点触控,这意味着以前无法使用的新控件.

我试过使用简单的语义缩放测试

<SemanticZoom>
        <SemanticZoom.ZoomedInView>
            <GridView Background="Red" ScrollViewer.IsHorizontalScrollChainingEnabled="False" ScrollViewer.IsVerticalScrollChainingEnabled="False"/>
        </SemanticZoom.ZoomedInView>
        <SemanticZoom.ZoomedOutView>
            <GridView Background="Black" ScrollViewer.IsHorizontalScrollChainingEnabled="False" ScrollViewer.IsVerticalScrollChainingEnabled="False"/>
        </SemanticZoom.ZoomedOutView>
    </SemanticZoom>
Run Code Online (Sandbox Code Playgroud)

如何在Windows Phone模拟器上实现?尝试了多点触控 - 没有帮助

小智 3

SemanticZoom 控件在 Windows Phone 8.1 上的行为有所不同(与 Windows 8 相比)。您必须点击组标题才能显示 ZoomedOutView,而不是使用多点触控缩放在两个视图之间切换。在此视图中,您可以点击某个项目以切换到其在 ZoomedInView 中的位置。

此行为类似于 Windows Phone 上的应用程序列表。字母 a、b、c 等是 ZoomedInView 的组标题 - 当您点击其中一个时,您将看到所有字母的列表 (ZoomedOutView)。

语义“Zoom”在 Windows Phone 上可能是一个误导性的名称...