I have an Image which I am translating along the X, with the Drag gesture. I am handling the DragDelta event for translating the image using the TranslateTransform object like this.
translate.X += e.HorizontalChange;
Now I want to restore the original position of the Image on the DragCompleted event. What I noticed was that the Margin property is not changed during translation. So which property (or possibly method) can I use to restore the original position of the Image
Thank you in advance
I have an Image which I am translating along the X , with the
Share
Transforms, such as your translate transform, happen on top of your other layouting (such as margins etc.)
To reset the position, just restore the translate transform to whatever it was before you started dragging.