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 8654349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:45:55+00:00 2026-06-12T14:45:55+00:00

I have a map on which I dynamically display pushpins, and would like to

  • 0

I have a map on which I dynamically display pushpins, and would like to interact with the pushpins without interacting with the map (so I can’t just disable the map by setting IsEnabled="False", nor can I use an image of the map).

I’ve tried the techniques depicted here: Handling tap on Pushpin in a fixed Map, which work great for zooming, and panning.

Extending this idea I’ve set up event handlers for all the events that would seem to match:

   Hold="map_Hold"
   MapPan="map_MapPan"
   MapZoom="Map_MapZoom"
   ManipulationStarted="map_ManipulationStarted"
   ManipulationDelta="map_ManipulationDelta"
   ManipulationCompleted="map_ManipulationCompleted"
   MouseLeftButtonDown="map_MouseLeftButtonDown"
   MouseLeftButtonUp="map_MouseLeftButtonUp"
   TargetViewChanged="map_TargetViewChanged"
   ViewChangeStart="map_ViewChangeStart"
   ViewChangeEnd="map_ViewChangeEnd"
   ViewChangeOnFrame="map_ViewChangeOnFrame"

(in the event handlers I simply set e.Handled = true;)

Yet you can still pan the map by making flicking motions on it (like how you would flick to the next image in the photo app).

Is there a way to disable the map panning altogether?
Or is there a way to interact with the pins if IsEnabled="False"?

  • 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-12T14:45:57+00:00Added an answer on June 12, 2026 at 2:45 pm

    This post was a while ago so you probably have solved the problem by now. But I had this problem today and this is the solution I had. (it’s not very elegant, but seems to work fine).

    For me this problem occurred when letting go of a pushpin after dragging and dropping it – Even though I had disabled the map_pan event when dragging a pushpin, the map would still move from the ‘flick’ gesture which is created when letting go of a push pin after dragging and dropping it.

    First of all, create a page scoped DespatchTimer and an int which will be our counter:

        DispatcherTimer dti = new DispatcherTimer();
    int counter =0;
    

    Next, in the pushpin’s MouseLeftButton up event, disabled your map, start the despatch timer with an interval of 1. Also create the Tick event handler for it.

     private void pushpin_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
    Map.IsEnabled = false;
    dti.Interval = new TimeSpan(0, 0, 0, 0, 1); // 1 Seconds
            dti.Start();
            dti.Tick += new EventHandler(dti_Tick);
    //other code logic
    }
    

    Next, create dti_Tick event. Within the tick event, stop the despatch timer when it is the second iteration into the tick event and re-enable the map. Reset the counter for future use.

     void dti_Tick(object sender, EventArgs e)
        {
            counter++;
            if (counter>= 1)
            {
                dti.Stop();
                Map.IsEnabled = true;
                counter= 0;
            }
        }
    

    This process will have stopped any ‘flick’ from occuring after your drag and drop pushpin logic. Clearly this code can be further optimised, but hope it is of some help to you.

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

Sidebar

Related Questions

I have a terrain map which i would like to represent some data in.
I have a let statement in which I would like to dynamically destructure a
I have an unordered map: class O(val a: Int) Map[String, List[O]] which I'd like
I want to have a map (which is image-mapped) show green in areas where
I have a Google V3 map which uses steetView and some map markers. The
I have made a map with jQuery which is split up in many regions,
I have a Map model, which defines the details for an ASCII-art map for
Is it preferred to have one depot with multiple folders which map to different
I have a static map in my application which populates when I click on
I have a bean which I map to the database using Hibernate. I'm using

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.