in PhotoEditor/MainPage.cpp [56:68]
IAsyncAction MainPage::OnNavigatedTo(NavigationEventArgs e)
{
// Load photos if they haven't previously been loaded.
if (Photos().Size() == 0)
{
m_elementImplicitAnimation = m_compositor.CreateImplicitAnimationCollection();
// Define trigger and animation that should play when the trigger is triggered.
m_elementImplicitAnimation.Insert(L"Offset", CreateOffsetAnimation());
co_await GetItemsAsync();
}
}