繁体   English   中英

在WP7中拖动图像

[英]Dragging images in WP7

我正在使用一个列表框使用以下代码绑定图像列表:

       <ListBox Name="lstBoxImages"  Height="645" VerticalAlignment="Top" Width="480">
            <ListBox.ItemsPanel>
                <ItemsPanelTemplate>
                    <toolkit:WrapPanel Height="Auto" Width="480" ItemHeight="120" ItemWidth="120"></toolkit:WrapPanel>
                </ItemsPanelTemplate>
            </ListBox.ItemsPanel>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border Width="120"  BorderThickness="2">
                        <StackPanel Orientation="Vertical" Width="110" >
                            <Image  Height="110" Width="110" Source="{Binding imageName}" Stretch="Uniform"/>
                        </StackPanel>
                    </Border>

                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

现在我要拖动图像并移动图像的位置。 有人可以帮我吗? 一个例子将是可理解的。 谢谢!!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM