A Microsoft platform for building and publishing apps for Windows devices.
i succeeded
My drag and drop were incorrect
i don't need to use the pointerreleased event of the image
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
in windows form app i have the mouse up event but not in uwp so i try to use the similar event pointer released.
I drag an image and when the mouse button is up i expected the image pointer released event to be raised but this is not
only if i released the mouse and click again the image and release then the event occurs
How to cause the pointer released event raised like the "mouse up event"
Thanks
A Microsoft platform for building and publishing apps for Windows devices.
Answer accepted by question author
i succeeded
My drag and drop were incorrect
i don't need to use the pointerreleased event of the image
In order to make sure the mouse up event occurs, you need to capture the pointer, like this:
your_control.CapturePointer(args.Pointer)
On PointerReleased, don't forget to release it:
your_control.ReleasePointerCapture(args.Pointer)