我有一個網格,其中的內容添加到listview.I已添加另一個網格,這是一個疊加在列表視圖上。我需要滾動底層網格中的項目。如何檢測事件的下層
<Grid>
<ListView>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
<TextBlock Text="CONTENT"/>
</ListView>
<Grid Background="Transparent" ManipulationDelta="Grid_ManipulationDelta" ManipulationMode="All"/>
</Grid>
請在此鏈接後面提供示例(http://stackoverflow.com/help/mcve) – peval27
如果您從疊加網格中刪除了背景=「透明」或設置了「IsHitTestVisible =」False 「',鼠標事件應該到達'ListView'。如果這樣做不起作用或者覆蓋網格包含更多內容,則可能必須捕獲鼠標事件並將它們明確地轉發到列表視圖。 – grek40
@ grek40我需要操作覆蓋網格事件以及滾動列表視圖中的項目。建議我請 – shalusri