リストボックスを使用して、コードを使用して画像のリストをバインドしています:
<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>
今、私は画像をドラッグして画像の場所を移動したいと考えています。誰でもこれについて私を助けることができますか? 例はかなりのものです。ありがとうございました!!