I understand this question has been asked before, but never for Windows Phone 8 has it been answered.
In Windows Phone 7, it was possible to set isHitTestVisible = false
on the base Pivot
element to stop the PivotItem from scrolling when swiping over certain elements, like Sliders and TextBoxes. In Windows Phone 8, however, the Pivot beings scrolling before the ManipulationStarted
event (or even the Touch
object's events) fires. This means that one cannot prevent scrolling between Pivots by listening for ManipulationStarted on certain Controls like one could in Windows Phone 7.
Is there any way to disable scrolling over certain elements, or even certain sections of the screen?
If your actual problem is that the Pivot swallow manipulation events for map/slider/etc. controls, try set UseOptimizedManipulationRouting="False"
.
MSDN have a longer explanation of this property.
Otherwise the correct approach is to use Pivot.IsLocked="True"
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With