简体   繁体   中英

Manipulation Grid with scrollviewer inside

I have layout like this in my page.

<Grid x:Name="grid" Margin="0,-30,0,0" ManipulationMode="All">
        <Grid Name="MainGrid" Width="{Binding ActualWidth, ElementName=grid}">
            <ScrollViewer Name="ScrollViewer" HorizontalScrollMode="Disabled" BringIntoViewOnFocusChange="False" IsHorizontalScrollChainingEnabled="False" IsHorizontalRailEnabled="False" >
                <Grid x:Name="LayoutRoot" Height="Auto"/>
            </ScrollViewer>
        </Grid>
    </Grid>

Scrollviewer just used for vertical sctolling. So I want to enable gesture manipulation horizontal in grid but it seems I can not get any gesture fired in grid. How I can achieve grid to make it enable manipulation gesture and scrollviewer just for vertical scrolling?

I already tried disable any horizontal scroll mode in scrollviewer and still can not get any manipulation gesture to be fired

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM