Hello,
Welcome to Microsoft Q&A!
@Amulya Break out from the Foreach loop is easy, you could achieve this using the While
loop. But there is no way to detect if the drag is canceled by releasing the pointer. The DragItemsCompleted event will only be fired after the DragStarting event is finished. So currently, there is no way to do this.
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.