Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounce transition duration support #3773

Open
glen-nicol opened this issue Mar 22, 2024 · 3 comments
Open

Bounce transition duration support #3773

glen-nicol opened this issue Mar 22, 2024 · 3 comments

Comments

@glen-nicol
Copy link

Is your feature request related to a problem? Please describe.
I was experiementing with the transitions in the WPF RoutedViewHost and noticed the duration property didn't have any effect when Bounce was set as the transition type. Sure enough I saw the code doesn't use the duration property when setting up bounce. I'm guessing that is because that animation uses key frames?

Describe the solution you'd like
I'd really like to be able to shorten the animation a little bit.

Describe alternatives you've considered
Use a different transition that uses duration.

Describe suggestions on how to achieve the feature
I haven't done much with animations in C code so forgive my ignorance. Is there a scale function that will stretch or compress the keyframe timestamps to match a new duration proportionally? Seems like that could be done fairly easily as a copy and mutate operation too.

Additional context

I would be willing to work this if my assumption about the lack of support is correct. If there is another reason that is more complicated I will just live with it or use a different transition.

@ChrisPulman
Copy link
Member

Hi, Thank you for raising this, currently the animations are defined in XAML with some predetermined timelines to follow, making an adjustment to the overall time alone wouldn't be sufficient to maintain the overall animation sequence in a variant time period.
I will see if we can move these to a C# code-based animation sequence to allow more flexibility.

@glen-nicol
Copy link
Author

k, should I wait for you to investigate before making some attempts myself?

@ChrisPulman
Copy link
Member

I'm currently working in Brazil, but as soon as I return I will make time to do some refactoring to convert the XAML into C# code thereby giving more flexibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants