WpfAnimatedGif icon indicating copy to clipboard operation
WpfAnimatedGif copied to clipboard

Delay animation for any gif?

Open ahmedtalaat327 opened this issue 3 years ago • 4 comments

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?

ahmedtalaat327 avatar Feb 24 '22 16:02 ahmedtalaat327

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.

thomaslevesque avatar Feb 24 '22 16:02 thomaslevesque

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 avatar Feb 24 '22 16:02 ahmedtalaat327

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

ahmedtalaat327 avatar Feb 24 '22 17:02 ahmedtalaat327

@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.

thomaslevesque avatar Feb 24 '22 17:02 thomaslevesque