Skip to content

[BUG] Back to page animation does not work in XF 5.0.0.2196. #71

@ghost

Description

Hi everyone, today I upgraded XF to version 5.0.0.2196 and unfortunately the site animation does not work as before. Next page animation works well but back animation doesn't. I used to use XF version 5.0.0.2012 and everything worked fine. I enclose a few screenshots. Thanks a lot.

Bug Information

Version Number of Plugin: 2.4.0
Device Tested On: Realme GT Android 11, OnePlus 9 Pro Android 11. Tested on other devices with the same effect
Simulator Tested On: Pixel3_XL_API_30
Version of VS: 16.11.5
Version of Xamarin: 5.0.0.2196
Versions of other things you are using: Xamarin.Essentials 1.7.0

Steps to reproduce the Behavior

Just create a new Xamarin Forms project and upgrade XF to the latest build 5.0.0.2196. That is all. You don't have to add anything else.
He tried it in XF.Shell and in a blank window. Same mistake.

Expected Behavior

The animation back to the page should work as in the previous version of XF 5.0.0.2012. see video XF_5.0.0.2012.

Actual Behavior

The back to page animation does not work. see video XF_5.0.0.2196.

Code snippet

in XAML
NavigationPage.HasNavigationBar="False" NavigationPage.HasBackButton="False" sharedTransitions:SharedTransitionNavigationPage.TransitionDuration="300" sharedTransitions:SharedTransitionNavigationPage.BackgroundAnimation="SlideFromRight"

in App.cs
MainPage = new SharedTransitionNavigationPage(new Page1());

Navigate to the page
App.Current.MainPage.Navigation.PushAsync(new Page2());

Navigate back to the page
App.Current.MainPage.Navigation.PopAsync();

Screenshots

XF_5.0.0.2012.mp4
XF_5.0.0.2196.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions