The map inside Panorama moves the panorama while panning the map

Well, basically, I have this bing control in my Panorama view, when I pan left or right, the panorama changes the columns. Is there any way to avoid this?

Behavior video

Thank!

+3
source share
3 answers

For this reason, it is advisable not to use the map in a panorama. If you can block the card, Jobi's offer should work for you.

This is from Jeff Wilcox for reference:

- "Using the map control inside Panorama or Summary is not recommended for a number of UX and technical reasons. Go to the subpage."

+3
source

IsEnabled = False . , Panorama

0

Place the map in your own control or create a control that inherits the map (if possible).

Then in the Control code file put this. This worked for me:

    protected override void OnManipulationStarted(ManipulationStartedEventArgs e)
    {
        e.Handled = true;
    }

    protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
    {
        e.Handled = true;
    }

    protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
    {
        e.Handled = true;
    }

    private void Control_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
    {
        e.Handled = true;
    }

    private void Control_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
    {
        e.Handled = true;
    }
0
source

Source: https://habr.com/ru/post/1775293/


All Articles