locked
Webview within flipview

    Question

  • Am having an image and webview as items in flipview ,swiping to next item using image is working but swiping through webview is not working
    Tuesday, April 14, 2015 5:16 AM

Answers

  • Hi Meera Shenoy,

    >>swiping through webview is not working

    If I do not misunderstood you, as far as I known, when we have the WebView full fill the FilView, all the swipe gesture will be covered by the current WebView page, it will not influence the FlipView control, so if we want to swipe betwwen the WebViews in the FilpView, one workaround is to set the size of the WebViews smaller than the size of the FlipView, then we can jump betwwen the WebView by swiping the blank place of the FlipView control as following:

    <FlipView Width="1000" Height="1000">
                <FlipView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </FlipView.ItemsPanel>
                <WebView Source="http://www.bing.com/" Width="500" Height="500" />
                <WebView Source="http://www.msdn.com/" Width="500" Height="500" />
                <WebView Source="http://www.asp.net/" Width="500" Height="500" />           
    </FlipView>

    Or if you have a html page in your WebView, maybe you need to detect the swipe gesture in your html page by yourself to let the FilView control work with the swipe gesture in WebView page.

    If I have misunderstood you, please try to post a simple reproduce project in here.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Wednesday, April 15, 2015 9:34 AM
    Moderator

All replies

  • Hi Meera Shenoy,

    >>swiping through webview is not working

    If I do not misunderstood you, as far as I known, when we have the WebView full fill the FilView, all the swipe gesture will be covered by the current WebView page, it will not influence the FlipView control, so if we want to swipe betwwen the WebViews in the FilpView, one workaround is to set the size of the WebViews smaller than the size of the FlipView, then we can jump betwwen the WebView by swiping the blank place of the FlipView control as following:

    <FlipView Width="1000" Height="1000">
                <FlipView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal" />
                    </ItemsPanelTemplate>
                </FlipView.ItemsPanel>
                <WebView Source="http://www.bing.com/" Width="500" Height="500" />
                <WebView Source="http://www.msdn.com/" Width="500" Height="500" />
                <WebView Source="http://www.asp.net/" Width="500" Height="500" />           
    </FlipView>

    Or if you have a html page in your WebView, maybe you need to detect the swipe gesture in your html page by yourself to let the FilView control work with the swipe gesture in WebView page.

    If I have misunderstood you, please try to post a simple reproduce project in here.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Wednesday, April 15, 2015 9:34 AM
    Moderator
  • Hi Amy ,

    Thanks for the solution i followed the first one and it works

    Thursday, April 16, 2015 10:32 AM