locked
is there the max zoom factor about the webivew

    Question

  • when I load a page into the webview, then I try to zoom the webview, but I can't scale the webview to whatever size I want it to be.Is there max zoom factor with the webview? How can I  scale the webview to whatever size I want it to be.

       I found that when I zoom the webview over 6 factor,then a part of the web page lost.How resolve the problem.

     If you have sample, Please give me,thanks!

    Thursday, May 22, 2014 10:41 AM

All replies

  • Do you have a repro of the situation you are running into? Please share your repro via OneDrive so that the problem becomes more apparent.

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Friday, May 23, 2014 1:38 AM
    Moderator
  • case 1:use the following code ,when zoomout the webview under 5 times, there is no problem, as soon zoomout the webview over 6 times, then a part of the webview lost, that is a part of the web page can't see.
        
    <Page
        x:Class="App6.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation "
        xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml "
        xmlns:local="using:App6"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008 "
        xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 "
        mc:Ignorable="d">
        <ScrollViewer x:Name="svMain" HorizontalScrollBarVisibility="Auto" HorizontalScrollMode="Enabled" VerticalScrollBarVisibility="Auto"
                      VerticalScrollMode="Enabled" ZoomMode="Enabled" MinZoomFactor="0.7" MaxZoomFactor="8.0" Background="White" >
            <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

            <WebView x:Name="U_WebView" Source="http://www.sohu.com.cn "  Grid.Column="1" Width="1680" Height="1050" >
            </WebView>
            </Grid>
         </ScrollViewer>
    </Page>

    case 2:

    If use the following code, then  I can't scale the webview to whatever size I want it to be.

    question: is there a max zoomout times about the webview?


    <Page
        x:Class="App6.MainPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation "
        xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml "
        xmlns:local="using:App6"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008 "
        xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 "
        mc:Ignorable="d">
            <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

            <WebView x:Name="U_WebView" Source="http://www.sohu.com.cn "  Grid.Column="1" Width="1680" Height="1050" >
            </WebView>
            </Grid>
    </Page>

    Friday, May 23, 2014 6:25 AM