如何在C#中获取图像副本?
我有一个图像,我想拖动该图像,但当我拖动该图像时,我希望将相同的图像设置在原始图像放置的相同位置,并且还可以多次拖动该图像。这是我做不到的如何在C#中获取图像副本?,c#,xaml,windows-phone-8,C#,Xaml,Windows Phone 8,我有一个图像,我想拖动该图像,但当我拖动该图像时,我希望将相同的图像设置在原始图像放置的相同位置,并且还可以多次拖动该图像。这是我做不到的 <Image x:Name="im" ManipulationStarted="im_ManipulationStarted" ManipulationCompleted="im_ManipulationCompleted" Height="100" Width="100" Source="/splash.png" Margin="90,55
<Image x:Name="im" ManipulationStarted="im_ManipulationStarted" ManipulationCompleted="im_ManipulationCompleted" Height="100" Width="100" Source="/splash.png" Margin="90,550,290,118">
<Image.RenderTransform>
<CompositeTransform x:Name="ImageTransformation" ScaleX="1" ScaleY="1" />
</Image.RenderTransform>
<toolkit:GestureService.GestureListener>
<toolkit:GestureListener PinchStarted="GestureListener_PinchStarted" PinchDelta="OnPinchDelta" DragCompleted="GestureListener_DragCompleted" DragDelta="Image_DragDelta" />
</toolkit:GestureService.GestureListener>
</Image>
如果我解决了问题,您将从源代码中删除原始图像并将其放入目标控件,但您希望将其复制到目标。 您只需在代码隐藏拖放调用中更改
AllowedEffects
DragDrop.DoDragDrop(this, data, DragDropEffects.Copy);
请更好地解释你的问题。您的问题很不清楚。我想将该图像复制到其源中,该源在xaml中定义