This is a migrated thread and some comments may be shown as answers.

How to begin storyboard after the page was turned?

2 Answers 36 Views
Book
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 23 Jun 2011, 07:49 AM
Hello,

I am trying to find out about how I can start animation playing but only the page was completely turned. For example, if I grab the corner of the page and move it to the other side the page will be turned to the other side. As soon as it was done, I need to start storyboard playing. Any help is highly appreciated! Thank you!

My code:


<telerik:RadBook x:Name="Book" Width="820" Height="462" Grid.Column="1" Grid.Row="1" 
                            FirstPagePosition="Left"RightPageIndex="1" HardPages="Custom">
                <telerik:RadBookItem IsHardPaper="False">
                 <Grid>
                  <Image Source="Images/Tip1Left.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                  
                <telerik:RadBookItem IsHardPaper="False" >
                 <Grid>
                  <Image Source="Images/Tip1Right.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                  
                <telerik:RadBookItem IsHardPaper="False">
                 <Grid>
                  <Image Source="Images/Tip2Left.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                  
                <telerik:RadBookItem IsHardPaper="False">
                 <Grid>
                  <Image Source="Images/Tip2Right.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                  
                <telerik:RadBookItem IsHardPaper="False">
                 <Grid>
                  <Image Source="Images/Tip3Left.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                  
                <telerik:RadBookItem IsHardPaper="False">
                 <Grid>
                  <Image Source="Images/Tip3Right.png" Stretch="None" />
                 </Grid>
                </telerik:RadBookItem>
                </telerik:RadBook>
C#:
private void OPenTipsPage1(object sender, System.Windows.RoutedEventArgs e)
        {
            this.Book.RightPageIndex = 3;
        }

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 28 Jun 2011, 12:19 PM
Hi Vlad,

You can use the PageChanged event of the RadBook:
<telerik:RadBook x:Name="Book" Width="820" Height="462"
                        PageChanged="Book_PageChanged"
                      FirstPagePosition="Left" RightPageIndex="1" HardPages="Custom">

private void Book_PageChanged(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
 
}
Please let us know if this satisfy you.

Regards,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Vlad
Top achievements
Rank 1
answered on 29 Jun 2011, 10:26 AM
Thank you! It is working out. I highly appreciate your help.
Tags
Book
Asked by
Vlad
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Vlad
Top achievements
Rank 1
Share this question
or