SemanticZoom 内で ListView を使用すると問題が発生します。説明するのは難しいですが、ListView を左側に「接着」することはできません。
SemanticZoom 内に ListView を配置すると、ListView を指で動かすことができます。セマンティック ズームがない場合、ズームは移動せず、左側に留まります。
再生:
- 新しい Windows ストア アプリケーション (私の場合はユニバーサル アプリ) を作成します。
- SemanticZoom を作成し、ZoomedInView が一連の ListViewItems を含む ListView を作成することを確認します。
- 実行して、ListView を指で動かしてみてください
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<SemanticZoom HorizontalAlignment="Left">
<SemanticZoom.ZoomedInView>
<ListView Width="600" HorizontalAlignment="Left" >
<ListViewItem>Hello World</ListViewItem>
<ListViewItem>Hello World</ListViewItem>
<ListViewItem>Hello World</ListViewItem>
<ListViewItem>Hello World</ListViewItem>
</ListView>
</SemanticZoom.ZoomedInView>
<SemanticZoom.ZoomedOutView>
<GridView />
</SemanticZoom.ZoomedOutView>
</SemanticZoom>
</Grid>
ManipulationMode を「None」に設定すると、左から右に移動するだけで、左にとどまることはありません。
前もってありがとう、リック