Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.

Commit

Permalink
89977
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Apr 23, 2014
1 parent bff6607 commit b352197
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Microsoft.Phone.Controls.Toolkit/Transitions/TransitionFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,15 @@ private void EnsureLastTransitionIsComplete()

// If the app calls GoBack on NavigatedTo, we want the old content to be null
// because you can't have the same content in two spots on the visual tree.
_oldContentPresenter.Content = null;
if (_oldContentPresenter != null)
{
_oldContentPresenter.Content = null;
}

_storedOldTransition.Stop();
if (_storedOldTransition != null)
{
_storedOldTransition.Stop();
}

_storedNavigationOutTransition = null;
_storedOldTransition = null;
Expand Down

0 comments on commit b352197

Please sign in to comment.