-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Still no way to turn off animation on navigating back #3054
Comments
The fix for this could potentially be a breaking change for people who implemented a custom pop animation and expect to see it even if the push was without an animation. The likelihood is probably minimal, however.
Why do you make this assumption?
I think the APIs here are pretty clear as they can be animated independently of each other. I also needed to disable both push and pop transitions for custom design, and my workaround was creating custom NavigationPageRenderers and overriding the async navigation methods to pass a false flag to their base. This has the side effect of rendering Core animated flag useless, but at least it's handling the Back button animation. |
@adrianknight89 Said:
Would you mind sharing those renderers for the rest of us facing the same problem? |
Do the same thing for other platforms. As I said, this is making the You could potentially add custom logic here to scan for page types or certain set of criteria (like your custom logic [i.e. non-animated push should be coupled with a non-animated pop for that specific page]). |
@adrianknight89 Your solution doesn't work for basic content pages with a Navigation.PushModalAsync(new ContentPage()) |
This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you! |
This issue is still present and relevant today. |
Thanks for this suggestion! As Xamarin.Forms is now in maintenance mode, this will not happen anymore for Xamarin.Forms. We're only adding bugfixes and stability fixes. If this is still important to you, make sure to check the .NET MAUI repo and see if it's already on the roadmap. If not, feel free to open a discussion to discuss a change first or open an issue with a detailed feature request. Thanks! |
NavigationStack and ModalStack are two different things. |
Description
You can turn off the navigation animation when pushing a page. Its a simple argument
Navigation.PushAsync(new MyCoolPage(), false);
But when you hit [Back] there is a still a zooming animation.
Steps to Reproduce
Navigate from page to page, then hit the back button (android) - I presume back from the navbar is the same on iOS.
Expected Behavior
If animation is set to false when you go TO a page, I would expect LEAVING that page would also be False. It just seems natural.
Actual Behavior
Animation is always on when you go [back] even if it was
false
when pushing the page out.Basic Information
Screenshots
Reproduction Link
The text was updated successfully, but these errors were encountered: