How to stop the WP7 pivot control handling the Flick Gesture event in Silverlight Toolkit

允我心安 提交于 2019-11-29 08:00:39
Matt Lacey

The short answer is don't put a control which supports a gesture on top of another control which also supports the same gesture.

Please see this answer to a very similar question for a slightly longer response: WP7 Toggle switch in a Pivot control?

This solution posted recently seems to be working out for people for dealing with gesture conflicts on pano / pivot. You might like to check it out.

Preventing the Pivot or Panorama controls from scrolling

I found this works well for incorporating a slider on a pivot item:

LayoutRoot
  Pivot
    PivotItem
      Grid
        Scrollviewer
          [Content goes here, I use another grid]
        Slider

If I skip the grid and place the slider inside the scrollviewer it doesn't work. I stumbled upon this solution as I wanted to support landscape and still have the slider visible / usable.

You might be able to place your small UI segment for the gesture similar to where I placed my slider.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!