Turn off vertical scrolling of the webview to preserve scrolling of the parent element

I managed to disable vertical scrolling in WebView (Universal Apps, Windows Phone 8.1) thanks to the overflow: hidden CSS property.

It works well, but I would like to keep the parent scroll, which is the StackPanel, because if my WebView height is higher than the screen of my device, I cannot scroll down.

Does anyone have any ideas?

+4
source share
2 answers

Try using

html, body{
    -ms-touch-action: none;
    -ms-user-select: none;
}

thank

+1
source

click -, -:

       <ScrollViewer>
         <StackPanel>
                <WebView x:Name="WebviewContent" VerticalAlignment="Top" DefaultBackgroundColor="Transparent" /> 
                <Rectangle Height="{Binding Height, ElementName=WebviewContent}" Name="RecWeb" VerticalAlignment="Top" Fill ="#00000000" />
         </StackPanel>
         </ScrollViewer>
0

All Articles