Transitions not working after trying to change transition

4 posts, 1 answers
  1. Rich
    Rich avatar
    8 posts
    Member since:
    Jul 2011

    Posted 23 Jan 2013 Link to this post

    I have a Windows Phone 8 project, and I've got the RadControls in it.  I would swear that there was a standard turnstyle transition before I tried to switch to the RadContinuumTransition.  In app.xaml.cs, I put the following:
    private void InitializePhoneApplication() 
    { if (phoneApplicationInitialized) return;
    // Create the frame but don't set it as RootVisual yet; this allows the splash
    // screen to remain active until the application is ready to render.
    RootFrame = new RadPhoneApplicationFrame { Transition = new RadTurnstileTransition() };
    RootFrame.Navigated += CompleteInitializePhoneApplication;
    // Handle navigation failures
    RootFrame.NavigationFailed += RootFrame_NavigationFailed;
    // Ensure we don't initialize again phoneApplicationInitialized = true;
    }

    I also fiddled around with app.xaml and MainPage.xaml before I realized that this was all I should have to do, but I've undone all of those changes. Still, no transitions seem to be working. Is there more to it than this change? Even removing the
     { Transition = new RadTurnstileTransition() } 
    doesn't get me the transitions - just the MainPage "pops" in without animation.

    Any help would be greatly appreciated. Thanks!

  2. Answer
    Todor
    Admin
    Todor avatar
    778 posts

    Posted 24 Jan 2013 Link to this post

    Hi Rich,

    Thank you for contacting us.

    I'm not sure what exactly you are trying to achieve. If you are trying to use the standard transitions, then simply use RadPhoneApplicationFrame and don't change the default transition:
    RootFrame = new RadPhoneApplicationFrame();


    If you are trying to use RadContinuumTransition, then set the Transition property of the application frame to RadContinuumTransition:
    RootFrame = new RadPhoneApplicationFrame() { Transition = new RadContinuumTransition() };

    If you want to change the transition for a specific page only then you can add this code to the page that you want to have a different transition:
    <phone:PhoneApplicationPage
        ...>
     
    <telerikPrimitive:RadTransitionControl.Transition>
        <telerikPrimitive:RadContinuumTransition/>
    </telerikPrimitive:RadTransitionControl.Transition>
     
    ...
     
    </phone:PhoneApplicationPage>

    Please note that you can change the transitions only between different pages and not the way the main page enters as a result of starting the application. 

    I hope this information helps.

    Greetings,
    Todor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Rich
    Rich avatar
    8 posts
    Member since:
    Jul 2011

    Posted 24 Jan 2013 Link to this post

    Ah, thanks.  I was looking for it on that first page, not realizing that it didn't work then.  Now that I know that, clicking one of the links to a different page, I do see the transition.  I guess then I'd like to know how to get a transition into the main page when opening the app, rather than have it just slap you in the face and be there.
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 24 Jan 2013 Link to this post

    Hi Rich,

    The transition applies when the application actually "transits" from one page to another. When the first page loads you should see the Turnstile Transition which is the default for Windows Phone. If you want to change it you can simulate a transition by creating some "dummy page" which is empty and when its loaded navigate to your actual start page by using some of the mentioned approaches. If you don't see the turnstile transition for the main page, I'd like to ask you to prepare a sample project that reproduces this behavior so that we can see what's causing this undesired behavior.

    Please note that you will have to open a new support ticket in order to be able to attach a solution.

    Greetings,
    Todor
    the Telerik team
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top