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

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinnara committed Apr 23, 2014
2 parents 60a2b5e + b352197 commit c53f142
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 c53f142

Please sign in to comment.