-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Added AnimationBuilder.Start(UIElement, Action) overload #3929
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
Added AnimationBuilder.Start(UIElement, Action) overload #3929
Conversation
Thanks Sergio0694 for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
a2a459a
to
900fc0c
Compare
@Sergio0694 I think this is a really important addition to the API, but maybe some tests coverage would be nice on this. Maybe something simple that ensures that the callback is called after all animations it depends on. Just to make sure this does not break in the future. |
@RosarioPulella Yeah that's good advice, I've just tested this new API locally for now. |
5900dbd
to
f13718c
Compare
@RosarioPulella Do you know if there's a proper way to handle asynchronous tests with the MUX test infrastructure? Thanks! 🙂 |
I don't believe there is any documentation as this area new. I can take a look on whats going wrong though, maybe this experience will help me formulate some docs, or improve this test infra structure. |
@Sergio0694 you're talking about the Integration Tests (UITest) app vs. the UnitTest (and the VisualUITestBase), eh? |
@michael-hawker Correct. But now that you mention it, I double-checked the UnitTest project and remembered that we also have the ability to set a window content there to test things actually loaded in the tree (for some reason I was thinking of all the tests only using |
f13718c
to
755cce9
Compare
755cce9
to
2aae986
Compare
Alright, removed that previous commit and added new unit tests in 2aae986. |
@Sergio0694 no problem. I was in the middle of writing docs for the tests before we shipped, so I should finish those. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sergio0694 seems great, thanks! Thanks for adding detailed comments and tests!
Should other animation helpers have more unit tests?? 😉
Addition to #3639
PR Type
What kind of change does this PR introduce?
What is the current behavior?
There is no synchronous overload for
AnimationBuilder.Start
taking a completion callback.What is the new behavior?
This PR adds a new
AnimationBuilder.Start(UIElement, Action)
overload, with an efficient implementation not using an async state machine to schedule and invoke the callback when the animation group(s) complete.Example usage
PR Checklist
Please check if your PR fulfills the following requirements:
Pull Request has been submitted to the documentation repository instructions. Link:Sample in sample app has been added / updated (for bug fixes / features)Icon has been created (if new sample) following the Thumbnail Style Guide and templates