我正在使用VisualStudio 2010和Microsoft的Surface SDK 2.我有一个C#WPF项目,我正在尝试实现一个包含在SurfaceScrollViewer中的触摸响应DataGrid。当网格为空时,触摸滚动工作,但是一旦填充了网格,DataGrid的突出显示事件就会接管。有没有人遇到并知道解决方案?
以下是我的示例XAML:
<Grid>
<my:SurfaceScrollViewer HorizontalAlignment="Stretch" Name="surfaceScrollViewer" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" >
<DataGrid Name="dataGrid" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ItemsSource="{Binding Path=DataView}" RowHeight="35" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Hidden" HeadersVisibility="None" FontSize="16" FontWeight="Bold" CanUserResizeRows="False" AreRowDetailsFrozen="True" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" Focusable="True" />
</my:SurfaceScrollViewer>
</Grid>