Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9029261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:12:30+00:00 2026-06-16T07:12:30+00:00

There are several events which deal with manipulation (and thus drag&drop): ManipulationStarting ManipulationStarted ManipulationDelta

  • 0

There are several events which deal with manipulation (and thus drag&drop):

  • ManipulationStarting
  • ManipulationStarted
  • ManipulationDelta
  • ManipulationInertiaStarting
  • ManipulationCompleted

In the ManipulationStarting event, the event args (type ManipulationStartingRoutedEventArgs) allow me to set the Mode attribute to ManipulationModes.None — is it correct that this means that no manipulation is allowed and thus no drag&drop?

I’m asking because I’ve come across a strange behaviour when I was playing with the official XAML user input events sample application, especially with scenario 4 (drag&drop).

Just set the Mode to ManipulationModes.None in the ManipulationStarting event of Scenario4.xaml.cs:

void ManipulateMe_ManipulationStarting(object sender, ManipulationStartingRoutedEventArgs e)
{
    forceManipulationsToEnd = false;
    e.Mode = ManipulationModes.None;   // <-- this is new
    e.Handled = true;
}

Nevertheless, with every third drag attempt I can drag the rectangle around. I’ve recorded a video to demonstrate this: http://www.youtube.com/watch?v=psytuTailHg.

This problem does not only occur with this sample but also in my own application.

Questions:

  • Why is there such a strange behavior?
  • What’s the best way to cancel the drag&drop event (for instance if some conditions are not met)?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:12:32+00:00Added an answer on June 16, 2026 at 7:12 am

    On a gridview for example you can implement the DragItemStarting event, and set e.Cancel = true; to prevent this behaviour – does that not meet your needs?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the source code of SIMBL Agent, there're several codes which send Apple events
I am developing a small desktop app, and there are several drop-down lists (combobox-es)
Given this model: sysschedules , and assuming there were several events in the DB
There is only one listener attached to several events like this: // emitter is
I know that in C#, there are several built in events that pass a
I am working on a game in which there are several Plane objects that
There are several threads on this here at SO but I didn't find one
There are several other questions about this topic that I have gone through, but
There are several variant questions on this on SO, but I did not find
There are several places on the internet that talk about having multy key dictionary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.