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

Delay animation for any gif? #96

Open
ahmedtalaat327 opened this issue Feb 24, 2022 · 4 comments
Open

Delay animation for any gif? #96

ahmedtalaat327 opened this issue Feb 24, 2022 · 4 comments

Comments

@ahmedtalaat327
Copy link

ahmedtalaat327 commented Feb 24, 2022

I added the gif using this code:

<Image gif:ImageBehavior.AnimatedSource="../Images/Background/movi1.gif"/>

How can I control the delay time to start the gif ? any property in xaml can do this?

@thomaslevesque
Copy link
Member

Hi @ahmedtalaat327,

There's no property to delay the animation start. The only way to do this right now is to set AutoStart to false and control the animation manually.

@ahmedtalaat327
Copy link
Author

Sorry Hi, @thomaslevesque
I did tried that but it's just by calling the tag Image gif it puts the whole UI in waiting mode.? preventing any other animation from loading specially storyboard animations with small duration.

@ahmedtalaat327
Copy link
Author

@thomaslevesque I think AutoStart prop Just for hiding the element not stooping the process of decoding. and the prcoessitself is async method maybe.

@thomaslevesque
Copy link
Member

@ahmedtalaat327 sorry, I don't understand what you're saying.

just by calling the tag Image gif

What does it mean?

think AutoStart prop Just for hiding the element not stooping the process of decoding. and the prcoessitself is async method maybe.

Setting AutoStart to false just causes the animation not to start automatically, so that you can control it manually. It doesn't change when the decoding is done.

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

2 participants