Reputation: 11677
For previous versions of Windows Phone, if you had a scrollable control within a ScrollView
, then you could set UseOptimizedManipulationRouting
to false
so that the inner control got a chance to handle the manipulation events first. This does not seem to exist on Windows Phone for WinRT. Does anyone know what the correct solution would be in this case?
Upvotes: 1
Views: 715
Reputation: 31724
IIRC, you need to set ManipulationMode
to something like ManipulationMode="System,TranslateX"
(i.e. include the System
flag with your other modes that you want enabled), then call CancelDirectManipulations()
when you want to prevent the system from continuing the processing of direct manipulations on the ScrollViewer
.
Here's a sample that uses the CancelDirectManipulations()
method.
Upvotes: 3