uno.extensions icon indicating copy to clipboard operation
uno.extensions copied to clipboard

[Navigation] It would be great to have transitions on section navigation.

Open takla21 opened this issue 2 years ago • 0 comments

What would you like to be added:

A way to configure smoother transitions on navigation. Especially on section navigation.

Why is this needed:

It looks ugly at times. See example: android android

iOS ios

Sample navigationflicker.zip

For which Platform:

  • [x] iOS
  • [x] Android
  • [ ] WebAssembly
  • [ ] WebAssembly renders for Xamarin.Forms
  • [ ] Windows
  • [ ] Build tasks

Anything else we need to know?

In this sample, routes are configured like this

views.Register(
            new ViewMap<ShellControl, ShellViewModel>(),
            new ViewMap<MainPage, MainViewModel>(),
            new ViewMap<FirstPage, FirstViewModel>(),
            new ViewMap<SecondPage, SecondViewModel>(),
            new ViewMap<ThirdPage, ThirdViewModel>()
            );

        routes
            .Register(
                new RouteMap("", View: views.FindByViewModel<ShellViewModel>(),
                    Nested: new RouteMap[]
                    {
                        new RouteMap("First", View: views.FindByViewModel<FirstViewModel>(), IsDefault: true),
                        new RouteMap("Main", View: views.FindByViewModel<MainViewModel>(),
                            Nested: new RouteMap[]
                            {
                                new RouteMap("Second", View: views.FindByViewModel<SecondViewModel>(), IsDefault: true),
                                new RouteMap("Third", View: views.FindByViewModel<ThirdViewModel>()),
                            }
                        ),
                    }));

takla21 avatar Oct 06 '22 22:10 takla21