SlideView swiping and fullscreen ad with WebBrowser

2 posts, 0 answers
  1. Mirko
    Mirko avatar
    17 posts
    Member since:
    Jul 2013

    Posted 18 Jul 2013 Link to this post

    Hi,
    I've got a question, do you have any recommendation or trick, how to use the SlideView for browsing list of 'articles' in fullscreen mode where some items in the list are in fact fullscreen ads created using the WebBrowser component? The problem is WebBrowser is capturing all touch events and it's not propagating them to logical tree and to the parent SlideView. The result is once I swipe to this page with fullscreen Ad/WebBrowser, I cannot leave this page, the swiping gesture is not propagated to SlideView.

    Thanks for any response.
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 19 Jul 2013 Link to this post

    Hi Mirko,

    Thank you for writing.

    The WebBrowser control doesn't seem to provide a way to be used as you would like. One possible workaround is to add buttons that will perform the navigation in RadSlideView by using its MoveToNextItem and MoveToPreviousItem methods. Another option is to display the browser with fixed height so that it doesn't take the whole screen by using an ItemTemplate similar to this one:
    <DataTemplate>
        <Grid Background="LightBlue">
            <phone:WebBrowser Height="500" Source="{Binding}" />
        </Grid>
    </DataTemplate>

    This way there will be some visible area above and under the browser that will allow you to slide to the other items.

    I hope this information helps.

    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top