GithubHelp home page GithubHelp logo

Comments (8)

Mike-E-angelo avatar Mike-E-angelo commented on May 16, 2024

I would vote for that. 👍 Animation should be a concern of the view, ideally. With that said, my Xamarin.Forms navigation experience is very minimal (but, that parameter has always bugged me). It would be great to hear from someone with a good deal of experience around this parameter to get their take on why it's being passed around like it is and not being handled by the view.

from prism.

powerdude avatar powerdude commented on May 16, 2024

I would suggest leaving it has i've seen quite a number of people on forums want something like this. It becomes necessary when you want to push/pop a number of forms on/off the stack but not make it obvious you are doing so. I haven't run into the scenario myself, but I see it is possible.

from prism.

omares avatar omares commented on May 16, 2024

@brianlagunas could you please link the current implementation?

In general, please keep the option to control the animation, controlling it is an important part of handling the navigation stack "behind the scene".

from prism.

brianlagunas avatar brianlagunas commented on May 16, 2024

@omares here is the interface definition:
https://github.com/PrismLibrary/Prism/blob/master/Source/Xamarin/Prism.Forms/Navigation/INavigationService.cs

I am thinking that the animated parameter should at least go last since it is probably not used as the useModalNavigation would be.

from prism.

brianlagunas avatar brianlagunas commented on May 16, 2024

What about passing the "animated" option as a NavigationParameter, instead of placing it on the Navigate method signature?

from prism.

Mike-E-angelo avatar Mike-E-angelo commented on May 16, 2024

That is definitely better. I myself would prefer a clever use of an attached property somewhere, in the most ideal of situations. Again, that's just my input without me sticking my nose into it too much yet.

from prism.

brianlagunas avatar brianlagunas commented on May 16, 2024

For now, I just moved the animated parameter to the end of the method signature. I will re-evaluate if the community is completely against it.

from prism.

lock avatar lock commented on May 16, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from prism.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.