Windows phone 8 如果我触摸这个ScrollViewer中的某些特定部分,如何阻止ScrollViewer手势?
在我的windows phone应用程序中,我需要这样做:Windows phone 8 如果我触摸这个ScrollViewer中的某些特定部分,如何阻止ScrollViewer手势?,windows-phone-8,gesture,scrollviewer,Windows Phone 8,Gesture,Scrollviewer,在我的windows phone应用程序中,我需要这样做: 我将地图放在滚动查看器中, 如果我触摸地图,地图工作,不会导致滚动查看器移动 如果我触摸地图外部但在滚动查看器中的位置,滚动查看器将滚动。 这是我的xaml布局: <ScrollViewer Height="800"> <Grid Height="400" x:Name="ContentPanel" Margin="12,0,12,0"> <myMap/> </
我将地图放在滚动查看器中,
如果我触摸地图,地图工作,不会导致滚动查看器移动
如果我触摸地图外部但在滚动查看器中的位置,滚动查看器将滚动。
这是我的xaml布局:
<ScrollViewer Height="800">
<Grid Height="400" x:Name="ContentPanel" Margin="12,0,12,0">
<myMap/>
</Grid>
</ScrollViewer>
myMap.ManipulationStarted += OnManipulationStarted;
myMap.ManipulationDelta += OnManipulationDelta;
myMap.ManipulationCompleted += OnManipulationCompleted;
每个OnManipulation都有一个“e.Handled=true”但不起作用
如果你有任何建议,请帮助我,谢谢
更新 如果布局是
<phone:Panorama Grid.Row="1">
<phone:PanoramaItem Header="First">
<ScrollViewer>
<!--ContentPanel - 在此处放置其他内容-->
<Grid x:Name="ContentPanel" Height="400" Margin="12,0,12,0">
</Grid>
</ScrollViewer>
</phone:PanoramaItem>
<phone:PanoramaItem Header="Second">
<TextBlock Text="Hello world"/>
</phone:PanoramaItem>
</phone:Panorama
在scrollviewer中设置操纵模式=“Control”
您找到解决方案了吗?@Alexander yes将OperationMode=“Control”设置为您的scrollviewer