データバインドされたリストボックスにピンチズーム機能を追加しようとしています。これを行うための最も効率的な方法は何ですか?ListBoxをグリッドコントロール内に配置し、スクロール可能にしました。
これは私の現在のコードです。
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="10,0,10,10" Background="Black" >
<ListBox Name="lstText" FontSize="24" Foreground="White" SelectionMode="Single" Margin="10,0,10,10" ScrollViewer.VerticalScrollBarVisibility="Visible" >
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel >
<TextBlock Text="{Binding Text}" TextWrapping="Wrap"></TextBlock>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
<toolkit:GestureService.GestureListener>
<toolkit:GestureListener
Tap="GestureListener_Tap"
PinchCompleted="GestureListener_PinchCompleted"
Flick="GestureListener_Flick">
</toolkit:GestureListener>
</toolkit:GestureService.GestureListener>