如何在Windows Phone 8.1上滚动缩放此图片

时间:2014-09-22 10:21:28

标签: windows-phone-8 windows-phone-8.1 image-zoom

以下代码: 有些人告诉我使用工具包:手势监听器,但它不适用于Windows Phone 8.1

<ListView Name="lst_img">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <Image Name="img_intro" Source="{Binding link}" DoubleTapped="Image_DoubleTapped">

                    </Image>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

1 个答案:

答案 0 :(得分:0)

在ScrollViewer中添加Image控件:

<ListView Name="lst_img">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ScrollViewer ZoomMode="Enabled">
                <Image Name="img_intro" Source="{Binding link}" DoubleTapped="Image_DoubleTapped">

                </Image>
                </ScrollViewer>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>