How to begin storyboard after the page was turned?

3 posts, 0 answers
  1. Vlad
    Vlad avatar
    19 posts
    Member since:
    Nov 2010

    Posted 23 Jun 2011 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 28 Jun 2011 Link to this post

    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
  3. DevCraft banner
  4. Vlad
    Vlad avatar
    19 posts
    Member since:
    Nov 2010

    Posted 29 Jun 2011 Link to this post

    Thank you! It is working out. I highly appreciate your help.
Back to Top