FlipDuration not taken into account when using .NextPage method

4 posts, 1 answers
  1. Jim
    Jim avatar
    12 posts
    Member since:
    Sep 2011

    Posted 29 Jan 2012 Link to this post

    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
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 01 Feb 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jim
    Jim avatar
    12 posts
    Member since:
    Sep 2011

    Posted 01 Feb 2012 Link to this post

    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
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
Back to Top