Control conflicts arise when map is in a VerticalScrollArrangement

When a map is placed in a VerticalScrollArrangement, finger control of the map (e.g. panning and zooming) does not work cleanly. The VerticalScrollArrangement takes precedence. Any up and down finger movement on the map causes the VerticalScrollArrangement to scroll, not the map to pan. Zooming in and out with pinching is also problematic, but that is reasonably resolved by setting EnaleZoom to TRUE. I'd like to keep the map in a VerticalScrollArrangement container.

Any ideas making map and VerticalScrollArrangement play well with each other?

Perhaps set Map.EnablePan to false (disable it)

well, I am trying to keep the ability to pan while keeping the ability to scroll the whole VerticalScrollArrangement. Ideally, any finger movement in the map would just affect the map for the enabled behaviors, and movement outside the map would control the scrolling of everything in the container. Feature request?

You cannot scroll inside a scroll, the device doesn't know to scroll where you want to scroll, so it defaults to the "outer" scrolling component.

Place the Map in a HorizontalArrangement along with a Button used to toggle the Map.EnablePan and Map.EnableZoom from false to true.

Place the HorizontalArrangement in your VerticalScrollArrangement.

When you want to adjust the Map pan or zoom, use the Button to turn them true. When you want to scroll the vsa, turn them false.

Seems to work for me. :wink: A bit awkward on a cell, works better on a tablet.

I believe this takes me back to the state in which I started. Rather than a toggle, I checked EnablePan and EnableZoom in the Designer. I end up with something that kinda works. Two-finger zoom in/out sort of works. Pan left and right sorta works. Any downward or upward finger motion moves the vsa. I tried the toggle enable/disable (just in case), but the result is the same.

I believe this is correct. The only other option I can think of is to turn off the scrolling of the VerticalScrollArrangement. But there is no such setting. I did chase setting the screen scrollable to false down a rabbit hole, then read that that is a design time thing.

Nope:

image

I hoping that setting that to FALSE that it would influence the VSA. No such luck. But now I know how to interpret what the screen setting does at run time. Thanks!

This helped me: How do you use Scrollable Property and VerticalScrollArrangement?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.