This is a migrated thread and some comments may be shown as answers.
Using Book In a PixelSense(Surface) Application
2 Answers 14 Views
This is a migrated thread and some comments may be shown as answers.
Iestyn
Top achievements
Rank 1
Iestyn asked on 03 Oct 2012, 02:38 PM
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 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 08 Oct 2012, 08:24 AM
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.

0
Iestyn
Top achievements
Rank 1
answered on 08 Oct 2012, 08:37 AM
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.
Tags
Book
Asked by
Iestyn
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Iestyn
Top achievements
Rank 1
Share this question
or