In my app I am using OnNavigatingFrom
and OnNavigatedTo
events to modify state of my view, for instance reset state of view to initial. This causes problems with navigation - when user clicks button, he sees blink of page in initial state, when it is doing its leaving animation. How I should code my UI to deal with this?
Page flow:
- OnNavigatingTo is called
- User does job on page
- User clicks button to navigate away
- OnNavigatingFrom is called
- Page resets UI to initial state
- ContentFrame starts to play output animation (user sees briefly page 1. state)
- ContentFrame switches to new page
Repro: https://github.com/ShadowDancer/uwp.transitions.repro.git