Using Book In a PixelSense(Surface) Application

3 posts, 0 answers
  1. Iestyn
    Iestyn avatar
    3 posts
    Member since:
    Jul 2012

    Posted 03 Oct 2012 Link to this post

    Hi 

    I'm developing a Surface v2.0 application and I'm using book control to display images (converted from a pdf document). I'm containing the control in a ScatterViewItem to allow the book to be resizable and draggable. This is all working fine. 

    My problem is when trying to turn the page, any drag motion moves the ScatterViewItem and doesn't turn the page. A Single/Double tap on the corner of the page does turn the page though but isn't intuitive enough to be useful.

    Does anyone have experience in using the control in a Surface app and knows how to enable the page turn please (I know it's a bit of a long shot).

     I've included the Xaml I'm using below

    <s:ScatterView AllowDrop="True" x:Name="myScatter" HorizontalAlignment="Stretch"
                                         VerticalAlignment="Stretch"
                                         Background="Transparent" >
             
           
                <s:ScatterViewItem Height="500" Width="600">
                    <telerik:RadBook x:Name="RadBook1" RightPageIndex="1" FirstPagePosition="left" Margin="10">
                        <telerik:RadBookItem>
                            <Image Source="pr001.png"/>
                        </telerik:RadBookItem>
                        <telerik:RadBookItem>
                            <Image Source="pr002.png" />
                        </telerik:RadBookItem>
                        <telerik:RadBookItem>
                            <Image Source="pr003.png" />
                        </telerik:RadBookItem>
                        <telerik:RadBookItem>
                            <Image Source="pr004.png"/>
                        </telerik:RadBookItem>
                    </telerik:RadBook>
                </s:ScatterViewItem>
                </s:ScatterView>

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 08 Oct 2012 Link to this post

    Hi Lestyn,

    We haven't tested the RadBook control in a Surface application and we haven't received any feedback on an integration between the RadBook and the ScatterView controls. However, from your description it sounds as though the ScatterViewItem handles the drag gesture and it can't get to the RadBookItem. Can you try the RadBook control outside a ScatterView? Even though the RadBook doesn't support any specific touch gestures, you should be able to turn its pages as if you're using a mouse - for example tapping twice on the RadBookItem or dragging it should change the page as expected.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Iestyn
    Iestyn avatar
    3 posts
    Member since:
    Jul 2012

    Posted 08 Oct 2012 Link to this post

    Hi Tina Thank you for your reply. Your suggestion is exactly the solution we've come up with too. We've moved the RadBook out of the scatter view and now everything is working fine. It's a great control and looks awesome on our pixelsense table.
Back to Top