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

FlipDuration not taken into account when using .NextPage method

3 Answers 46 Views
Book
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 29 Jan 2012, 11:55 AM
It seems that the FlipDuration property of the RadBook control is only taken into account when the user has initiated a page turn.

When using the method .NextPage or setting the property .RightPageIndex the flip duration is not used. Is this by design?

Is there a way to slow down a page turn when using .NextPage or .RightPageIndex?

Thanks,

Jim

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 01 Feb 2012, 05:18 PM
Hello Jim,

I wasn't able to reproduce the issue you are describing. The FlipDuration property is of type TimeSpan and has to be set in the following manner: FlipDuration="0:0:5". Please refer to the attached project and let me know if I am missing anything. I'd be glad to further assist you.

Regards,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jim
Top achievements
Rank 1
answered on 01 Feb 2012, 06:32 PM
Hello Kiril,

Thanks for the reply. It seemed I was doing some funky stuff that wasn't really correct.

I set the radBook's visibility property in XAML to Collapsed.
In code I did the following:

radBook.Visibility = Visibility.Visible;
radBook.NextPage();

In this scenario, the FlipDuration was not taken into account, even nog setting it to 5 minutes.

I solved it using Opacity.

Thanks again for your help.

Jim
0
Kiril Stanoev
Telerik team
answered on 06 Feb 2012, 10:21 AM
Hello Jim,

 You can try the following thing:

private void NextPage_Click(object sender, RoutedEventArgs e)
{
    this.book1.Visibility = System.Windows.Visibility.Visible;
 
    Dispatcher.BeginInvoke(new Action(() =>
    {
        this.book1.NextPage();
    }), System.Windows.Threading.DispatcherPriority.ApplicationIdle);
}

All the best,
Kiril Stanoev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Book
Asked by
Jim
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Jim
Top achievements
Rank 1
Share this question
or