Ticket T264664
Visible to All Users

NavigationFrame - Provide an option to change the transition speed

created 10 years ago

I'm currently using the Navigation Frame control in my WinForms application, quite usefull. Unfortunately, the transition speed while changing pages is terrible slow and there doesn't seem to be a property to change it. Am I right? Is there any way to increase the transition speed?

Thanks in advance!

Show previous comments (3)
Alisher (DevExpress Support) 10 years ago

    Mike and Frederik,

    I understand how this functionality is required. We will consider implementing it in our future releases.
    As a workaround, I suggest that you create a NavigationFrame class descendant, disable default transition animation by setting the AllowTransitionAnimation property to False and implement a custom animation with all required parameters. Override the NavigationFrame class descendant's OnSelectedPageChanging and OnSelectedPageChanged methods, create animation via TransitionManager in the OnSelectedPageChanging method and start the animation in the OnSelectedPageChanged method:

    C#
    public class CustomNavigationFrame : NavigationFrame { protected override void OnSelectedPageChanging(INavigationPage oldPage, INavigationPage newPage) { base.OnSelectedPageChanging(oldPage, newPage); //create animation via TransitionManager } protected override void OnSelectedPageChanged(INavigationPage oldPage, INavigationPage newPage) { base.OnSelectedPageChanged(oldPage, newPage); //start animation } }
    Visual Basic
    Public Class CustomNavigationFrame Inherits NavigationFrame   Protected Overrides Sub OnSelectedPageChanging(oldPage As INavigationPage, newPage As INavigationPage) MyBase.OnSelectedPageChanging(oldPage, newPage) 'create animation via TransitionManager End Sub Protected Overrides Sub OnSelectedPageChanged(oldPage As INavigationPage, newPage As INavigationPage) MyBase.OnSelectedPageChanged(oldPage, newPage) 'start animation End Sub End Class

    To learn how to create animation via the TransitionManager components, take a look at the TransitionManager Class documentation article.

    Let me know if you have additional questions.

    F F
    Frederik van der Veer 9 years ago

      Thanks guys, works fine!

      Alisher (DevExpress Support) 9 years ago

        You are welcome, Frederik!

        Answers approved by DevExpress Support

        created 9 years ago (modified 9 years ago)

        We have implemented the functionality described in this ticket. It will be included in our next update(s).

        Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

        Additional information:

        We have implemented this capability. To accomplish your task, please use NavigationFrame.TransitionAnimationProperties which contain FrameCount and FrameInterval properties.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.