Skip to content

How to call SlideNavigationTransitionEffect of SlideNavigationTransitionInfo in C++? (sliding effect issue?!) #8778

Closed Answered by yki5000
yki5000 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok,
Got it from here:
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/design/basics/navigate-between-two-pages.md

auto slideEffect = Microsoft::UI::Xaml::Media::Animation::SlideNavigationTransitionInfo();

slideEffect.Effect(Microsoft::UI::Xaml::Media::Animation::SlideNavigationTransitionEffect(Microsoft::UI::Xaml::Media::Animation::SlideNavigationTransitionEffect::FromRight));

winrt::App1::implementation::MainWindow::mainWindow->frmContent().Navigate(xaml_typenameApp1::SelectFunction(), nullptr, slideEffect);

Looks better, still there the bug but not that extreme, sigh.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yki5000
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant