silverlight - How to restore original position after translation using TranslateTransform? (Windows Phone C#) -
i have image translating along x, drag gesture. handling dragdelta event translating image using translatetransform object this. translate.x += e.horizontalchange; want restore original position of image on dragcompleted event. noticed margin property not changed during translation. property (or possibly method) can use restore original position of image thank in advance
transforms, such translate transform, happen on top of other layouting (such margins etc.)
to reset position, restore translate transform whatever before started dragging.
// _originalx , _originaly initialized in dragstart handler translate.x = _originalx; translate.y = _originaly
Comments
Post a Comment