TransitioningContentControl not transitioning when used with Prism Navigation RRS feed

  • Question

  • I am attempting to use the TransitioningContentControl. It works fine with prism navigation except it immediately removes the current content and animates the new one in.... always...

    The first screen comes up (in the MainContentRegion), then the call below is made after the user presses a button:




    The new View - ThumbnailsView , a UserControl, is instantiated at this point, but the content control calls function below twice. The first time, OldContent is equal to the screen with the button, and NewContent is null. Then OldContent is null and NewContent is equal to the new view above. Only the animation for the NewContent is done. The OldContent simply disappears. Doesn't transition like it is supposed to.

    protected override void OnContentChanged(object OldContent, object NewContent)

    Should it be called twice? Have you done this this way? I can’t find a simple example where two views are switched using a transitioningcontentcontrol alone and in Silverlight.







    Can anyone help?  I do have a repro, though you may have to fix some of the dependencies to point to your own prism, etc...

    Friday, July 1, 2011 4:40 PM


All replies