-
Notifications
You must be signed in to change notification settings - Fork 69
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
Rename IsRunning to IsAnimationEnabled on SKAnimatedSurfaceView #125
Conversation
Also made the default binding mode BindingMode.OneWay as it only needs to be driven by the source and not update it.
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.
Thanks for this and the great discussion!
I see the build is failing for the forms sample app. One last holdout for IsRunning. |
Doh! I didn't check the Forms part! I'll try and sort that. For unit tests I wanted to validate that the starting and stopping moved the animation progress but I couldn't get it to actually start. I'll try and get that done too |
@mattleibow hopefully this push will fix the build. I have failed getting a unit test in though. I wanted check that |
I believe I broke it at some point. I'll try figure it out. |
I believe when I added events I added them in the wrong order: #126 |
Description of Change
This PR renames the
IsRunning
property toIsAnimationEnabled
to hopefully provide a more meaningful name to the consumer.Bugs Fixed
API Changes
Changed:
bool SKAnimatedSurfaceView.IsRunning => bool SKAnimatedSurfaceView.IsAnimationEnabled
Behavioral Changes
Changed the default binding mode for the above property from
BindingMode.TwoWay
toBindingMode.OneWay
. The old way caused an issue in testing plus the property is only intended to change whether the control is animating and therefore does not need to update the source.PR Checklist