AnimatedImage (AvaloniaUI): ImageBehavior.AnimatedSource cann not access files on /Assets

13 Views Asked by At

I'm trying to use AnimatedImage for AvaloniaUI, but can not resolve fixed gif path. To reproduce please download the Code of AnimatedImage (Demo) and change the DemoForAvaloniaUI/MainWindow.axaml line 34 from: anim:ImageBehavior.AnimatedSource="{Binding SelectedSource.Source}" to: anim:ImageBehavior.AnimatedSource="avares://DemoForAvaloniaUI/Assets/working.gif"

I get Error: Invalid value for Property 'AnimatedSource': 'avares://DemoForAvaloniaUI/Assets/working.gif'

The file exists, is part of the demo.

Have anyone got this to work?

0

There are 0 best solutions below