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

c# documentation request for simple things #26

Open
tdbe opened this issue Jun 9, 2020 · 0 comments
Open

c# documentation request for simple things #26

tdbe opened this issue Jun 9, 2020 · 0 comments

Comments

@tdbe
Copy link

tdbe commented Jun 9, 2020

Hi, this plugin looks great but I have no idea how am I supposed to use your API to call an animation in C#. Please provide examples.

On this page all you say is we can do myElement.Animate(new FadeOutAnimation());
How do I define how long it lasts?
How do I pass in a callback Action for when it is done animating so I can disable myElement?

Your other AnimationExtensions overloads are super confusing as well:

  • string name? what's the name? why do I need to come up with one by default?
  • second param takes Animation but not Xamanimation.Animation??? How do I say start a xamanimation FadeOutAnimation then??
  • finished callback is an Action<double,bool>?? What does it need a double and a bool? What are those parameters for? I just want to run an arbitrary action when the animation is done.
  • repeat is a Func?? Bool? What does that mean? Shouldn't it be an int howManyTimes with 0 being infinite and -1 false?

So okay back to trying FadeOutAnimation(), let's try to give it a length and find if it has an OnFinished callback or make my own..:

  • Xamanimation.AnimationBase anim = new FadeOutAnimation(); Then I try to do anim.Duration = 1; What? It's a string? Why??? What do I write there? Milliseconds? Format? Am I even supposed to use this or is it for something else?
  • Callbacks? No callbacks.

I've never been more confused. Please provide some kind of explanation for what you're providing here.

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

No branches or pull requests

1 participant