Giter Club home page Giter Club logo

Comments (24)

Laftek avatar Laftek commented on May 14, 2024 37

This should have much higher priority in my opinion.

from maui.

Inrego avatar Inrego commented on May 14, 2024 31

What's the status on this? It's the oldest open issue in this repo. Added to "Under consideration" about 6 months ago. Is it still under consideration?
Shared transitions like these really do help improve look and feel for an app, as well as perceived speed of the app.

from maui.

GiampaoloGabba avatar GiampaoloGabba commented on May 14, 2024 16

Regarding shared transitions, please note that if you want to make a transition from a list of items (for example a Collectionview) the "TransitionTag" property could not be enough to identify the view you want to animate.

Imagine a DataTemplate with a list of items containing an image and a text, every image is different but the TransitionTag is always the same (for example: "ImageToTransition").

When you tap an element, the Navigation Renderer need to know exaclty what element need to be translated, and if you have a single tag for all your images in the CollectionView this could be a problem.

In my plugin i resolved using a TransitionGroup property wich i use to identify the element to translate.

I would like to contribute to this feature but my code for Android is not stable enough (there are problems with ChildFragments when using TabbedPages/MasterPage, but in shell i think is fine), also in iOS i sue some hacks to make good transitions shape.

I reworked a lot of code from the first version and now looks better but i dont think is good enough to go in core, but i'm ready to help and contribute if needed
https://github.com/GiampaoloGabba/Xamarin.Plugin.SharedTransitions

from maui.

felipebaltazar avatar felipebaltazar commented on May 14, 2024 7

@felipebaltazar It could be something similar to the proposal to create custom transitions in TabView xamarin/Xamarin.Forms#10773 I will do some tests and after that we will review the Spec.

Sounds good!!!!
I've done some animations on Xamarin.Forms.Skeleton repository, maybe it can help for new ideas... I don't know...

https://github.com/HorusSoftwareUY/Xamarin.Forms.Skeleton

from maui.

felipebaltazar avatar felipebaltazar commented on May 14, 2024 6

Suggestion

Perhaps a property that receives an animation instead of an enum?
To be able to extend and receive customized animations that need to implement some ITransitionAnimation interface.
And some predefined animations to use like NamedSize on fonts

Example:

<ContentPage
     Transition=“{local:MyCustomTransition}"
     TransitionDuration="750" />

Or predefined "Named Transitions"

<ContentPage
     Transition=“Fade"
     TransitionDuration="750" />

from maui.

GiampaoloGabba avatar GiampaoloGabba commented on May 14, 2024 5

or perhaps internally if the parent of the element is a collection, create the group automatically.

i tried this approach but it was a bit difficult. For example in a collectionview we can start a navigation based on the SelectedItem change.
It was much easier to "slap" a property for grouping and then let the user decide when and how to use it :)

Btw i'm planning to write here a small doc covering the basis architecture i used to develop this (how to track transitions and how to make it happen in iOS, because there is not native support to that and i had to develop everything by hand, while it is much easier in Android, if you exclude child fragments generated by tappedpage and MasterDetail)

Just in case there are maybe some good ideas to port here and exclude the bad ones, wich, i'm sure, will be a lot :)

from maui.

jsuarezruiz avatar jsuarezruiz commented on May 14, 2024 4

@felipebaltazar It could be something similar to the proposal to create custom transitions in TabView xamarin/Xamarin.Forms#10773 I will do some tests and after that we will review the Spec.

@GiampaoloGabba It will definitely be great to have your feedback on this API. If you want to contribute, as in Xamarin.Forms we will accept PRs and I will be happy to help you. About the parameter that you indicate for collections, I have reviewed it and you are right. Mnn, we can add an extra property to cover these cases (TransitionGroup), or perhaps internally if the parent of the element is a collection, create the group automatically.

from maui.

GiampaoloGabba avatar GiampaoloGabba commented on May 14, 2024 3

Btw a lot of my code could be greatly simplified if some properties can be integrated in the main core

from maui.

czmirek avatar czmirek commented on May 14, 2024 3

Is there any workaround on how to implement a traditional transition from bottom to top until this is developed?

For making a page appear from bottom to top I have to embed the page content into the parent page as a custom control and then run a custom open/close animation on it. I cannot think of anything else.

from maui.

South2AK avatar South2AK commented on May 14, 2024 3

Is there any update on this?

from maui.

shawyunz avatar shawyunz commented on May 14, 2024 2

Is there any workaround on how to implement a traditional transition from bottom to top until this is developed?

For making a page appear from bottom to top I have to embed the page content into the parent page as a custom control and then run a custom open/close animation on it. I cannot think of anything else.

Try this net-maui-navigation-animation?

from maui.

Inrego avatar Inrego commented on May 14, 2024 2

I think Flutter has it

from maui.

Inrego avatar Inrego commented on May 14, 2024 1

Is this going to be on roadmap?

If I was a betting man, I'd put my money on "no".

from maui.

anurag-sukumaran avatar anurag-sukumaran commented on May 14, 2024 1

Is this going to be on roadmap?

If I was a betting man, I'd put my money on "no".

That was funny, Really this transition so much required. Any workaround?

from maui.

MingK12 avatar MingK12 commented on May 14, 2024 1

it would be cool to see this going forward

from maui.

Inrego avatar Inrego commented on May 14, 2024 1

I checked and at least on Android all the page transition code is internal, and there is no way to override it
outside of having these 4 xml files in your project (suggested in #16353 (comment))
This should have been inside from day one, I can't hold on until .NET 9.0 to get this implemented.
Is Maui team going to provide us a way to do custom transitions

For the moment this package works fine. I tested it in net7.0 and 8.0

While that looks like a cool project, it doesn't seem to offer the kind of transitions that are requested here

from maui.

orwo1 avatar orwo1 commented on May 14, 2024 1

I checked and at least on Android all the page transition code is internal, and there is no way to override it
outside of having these 4 xml files in your project (suggested in #16353 (comment))
This should have been inside from day one, I can't hold on until .NET 9.0 to get this implemented.
Is Maui team going to provide us a way to do custom transitions

For the moment this package works fine. I tested it in net7.0 and 8.0

While that looks like a cool project, it doesn't seem to offer the kind of transitions that are requested here

@Phantom-KNA While it looks nice, it seems to require Shell, which I don't use.
Maui team could have provided a solution for this long ago.
In fact, they have this whole implementation that potentially could be used
to create custom transitions, except they finalized it with hard coded xml file names
and internal/private classes, for some reason.
Maui could and should be better than Xamarin.Forms, and I can't migrate to it
if it actually offers less.

from maui.

jsuarezruiz avatar jsuarezruiz commented on May 14, 2024

Sounds good @GiampaoloGabba, thanks!

from maui.

KSemenenko avatar KSemenenko commented on May 14, 2024

This can be really cool feature

from maui.

bcaceiro avatar bcaceiro commented on May 14, 2024

Is this going to be on roadmap?

from maui.

Phantom-KNA avatar Phantom-KNA commented on May 14, 2024

Really, really we need this!!!

from maui.

orwo1 avatar orwo1 commented on May 14, 2024

I checked and at least on Android all the page transition code is internal, and there is no way to override it
outside of having these 4 xml files in your project (suggested in #16353 (comment))
This should have been inside from day one, I can't hold on until .NET 9.0 to get this implemented.
Is Maui team going to provide us a way to do custom transitions?

from maui.

Phantom-KNA avatar Phantom-KNA commented on May 14, 2024

I checked and at least on Android all the page transition code is internal, and there is no way to override it
outside of having these 4 xml files in your project (suggested in #16353 (comment))
This should have been inside from day one, I can't hold on until .NET 9.0 to get this implemented.
Is Maui team going to provide us a way to do custom transitions

For the moment this package works fine. I tested it in net7.0 and 8.0

from maui.

Hackmodford avatar Hackmodford commented on May 14, 2024

Kind of shocked that there isn't a good way to specify page transition animations in MAUI. :(

from maui.

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.