PrismLibrary / Prism

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Navigation is animated when parameters have turned animation off

jameslavery opened this issue · comments

Description

If animation is turned off:

var navParams = new NavigationParameters()
{
    {KnownNavigationParameters.Animated,false},
    {KnownNavigationParameters.UseModalNavigation, false },
};

_navigationService.NavigateAsync(nameof(SecondPage), navParams);

The application still has an animation when navigating. The animation is a slide from right to left.

If a plain MAUI application (without Prism) is used, with animation off, there is no animation.

This has been observed on Windows - it may be present on other platforms, but they have not been tested.

Reproduction project can be found here.

Steps to Reproduce

  1. Create a new MAUI solution with Prism.
  2. Add a second page, and add code to navigate from the 1st to second page with animation turned off.
  3. Run the application and navigate from the first to the second page.
  4. The application show an animation when navigating.

Platform with bug

.NET MAUI

Affected platforms

Windows, I was not able test on other platforms

Did you find any workaround?

No.

Relevant log output

No response

Great that this has been fixed - thank you. I see it's allocated to the Prism 9.0 milestone. I see that there's no due date for the milestone.

Is there any way to get this fix into our code earlier? Is it available via the CI build?