[英]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.