You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Sometimes it is desired to turn on/off navigation animations for a NavigationPage as a whole. The proposed changes still allow to tweak the animation behavior when calling INavigation API manually by passing the desired value of animated.
API Changes
NavigationPage would define new bool property Animated with the default value true (so the current behavior does not change).
NavigationRequestedEventArgs newly defines Animated as bool? instead of the current bool. Thanks to this we know whether there was an explicit request to animate/not animate.
Changes to the renderers would look something like this
Turning off animations for pop actions executed via back buttons (navbar/hw).
A typical scenario would be when your root page has HasNavigationBar set to false. When you push a page that has navigation bar and then pop back to the root, the navigation bar is hidden after the animation is completed. This creates a rather ugly artifact on the screen.
The text was updated successfully, but these errors were encountered:
I would welcome this feature as well. I had to create custom renderers just because disabling animation.
samhouts
added
inactive
Issue is older than 6 months and needs to be retested
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
labels
Aug 8, 2019
samhouts
added
proposal-open
and removed
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
labels
Feb 7, 2020
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!
Summary
Sometimes it is desired to turn on/off navigation animations for a
NavigationPage
as a whole. The proposed changes still allow to tweak the animation behavior when callingINavigation
API manually by passing the desired value ofanimated
.API Changes
NavigationPage
would define newbool
propertyAnimated
with the default valuetrue
(so the current behavior does not change).NavigationRequestedEventArgs
newly definesAnimated
asbool?
instead of the currentbool
. Thanks to this we know whether there was an explicit request to animate/not animate.Changes to the renderers would look something like this
Intended Use Case
Turning off animations for pop actions executed via back buttons (navbar/hw).
A typical scenario would be when your root page has
HasNavigationBar
set tofalse
. When you push a page that has navigation bar and then pop back to the root, the navigation bar is hidden after the animation is completed. This creates a rather ugly artifact on the screen.The text was updated successfully, but these errors were encountered: