Disable animation on PhoneApplicationFrame

2 posts, 0 answers
  1. Jessi
    Jessi avatar
    6 posts
    Member since:
    May 2014

    Posted 23 Oct 2014 Link to this post

    I want to use RADPhoneApplicationFrame on only a couple of pages and would like the majority of the application to not animate pages. Is there a way to set the default so it has no animation?
  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 28 Oct 2014 Link to this post

    Hi Jessi,

    Yes, the desired scenario is possible. In the InitializePhoneApplication() method you can assign the RootFrame to a RadPhoneApplicationFrame with RadEmptyTransition : 
    RootFrame = new RadPhoneApplicationFrame() {Transition = new RadEmptyTransition()};

    Then, when you want to animate a certain page, you can use the RadTransitionControl.Transition ​attached property to assign a transition. For example: 
    <phone:PhoneApplicationPage .. >
     <telerikPrimitives:RadTransitionControl.Transition>
            <telerikPrimitives:RadSlideTransition />
        </telerikPrimitives:RadTransitionControl.Transition>

    Let me know if this helps.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top