in PhotoEditor/MainPage.cpp [121:133]
IAsyncAction MainPage::StartConnectedAnimationForBackNavigation()
{
// Run the connected animation for navigation back to the main page from the detail page.
if (m_persistedItem)
{
ImageGridView().ScrollIntoView(m_persistedItem);
auto animation = ConnectedAnimationService::GetForCurrentView().GetAnimation(L"backAnimation");
if (animation)
{
co_await ImageGridView().TryStartConnectedAnimationAsync(animation, m_persistedItem, L"ItemImage");
}
}
}