question

winprofessional avatar image
0 Votes"
winprofessional asked winprofessional answered

Navigating to another XAML page

In my C++ UWP app there is a second page to which the app is navigating from the first. Here is the code I am using

this->Frame->Navigate(TypeName(BlankPage::typeid));

But when the second page(BlankPage) loads, it looks like as if it is loading from bottom to the frame of the first page. ie. a slow transition from bottom towards the top of the first window is seen. How can one avoid this? Is there any transition effects for this?

windows-uwp
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, is there any update? Have you solved you issue?

0 Votes 0 ·
FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered

Hello,​

​Welcome to our Microsoft Q&A platform!

Two different animations are provided for navigation between pages in an app, Page refresh and Drill, and are represented by subclasses of NavigationTransitionInfo. If you want to avoid playing any animation during navigation, you can use SuppressNavigationTransitionInfo in the place of other NavigationTransitionInfo subtypes. You can try the following code. And about more details, you can refer to this document.


 this->Frame->Navigate(Windows::UI::Xaml::Interop::TypeName(BlankPage::typeid),NULL ,ref new Windows::UI::Xaml::Media::Animation::SuppressNavigationTransitionInfo());



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

winprofessional avatar image
0 Votes"
winprofessional answered

Thanks . That worked !!!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.