Hello,
The SetupPageTransition
method has been canceled in Maui and is not inherited to NavigationViewHandler
. This is because Maui now supports adding transition animations to controls in a cross-platform way.
You can implement a custom NavigationPage with animations to display animation effects when performing Push and Pop operations.
For example:
public class AnimatedNaivgationPage: NavigationPage
{
public async void AnimatedPushAsync(Page page)
{
// add custom animation here.
page.TranslateTo(...)
await this.PushAsync(page);
}
public async void AnimatedPopAsync()
{
this.CurrentPage.TranslateTo(...)
await this.PopAsync();
}
}
You could refer to the following API documentation for more details about adding animation into controls.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.