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

Transitions not working after trying to change transition

3 Answers 70 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rich
Top achievements
Rank 1
Rich asked on 24 Jan 2013, 04:42 AM
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!

3 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 24 Jan 2013, 09:23 AM
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.
0
Rich
Top achievements
Rank 1
answered on 24 Jan 2013, 12:41 PM
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.
0
Todor
Telerik team
answered on 24 Jan 2013, 01:04 PM
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.
Tags
TransitionControl
Asked by
Rich
Top achievements
Rank 1
Answers by
Todor
Telerik team
Rich
Top achievements
Rank 1
Share this question
or