FileSource as ux:Key problem.

I’m using Fuse 34.0 in macOS Sierra. I’m trying to do an expression to get images dynamically:

<ImageFill File="Assets/portada/{title}1.jpg" StretchMode="UniformToFill" />

The thing is that File property needs FileSource and the UX expression return a string. To solve it, I tried to get the FileSource using a ux:Key:

<FileSource ux:Key="Portada1" ux:Value="Assets/portada/{title}1.jpg" />

But when I build it, I get this error: Error E0000: Uno.UX.FileSource has no default constructor.

How could I do it?

Thank you.


This is fixed internally but not rolled out yet. I believe the current pre-release (Fuse 0.35) contains this fix:

If not, then a near future release will enable expressions in file paths.

Until then, you will have to do a .map() in javascript to expand to the full file path.

Unfortunately it didn’t make it into 0.35, but next release should be good :slight_smile:

I wait it :slight_smile: Thanks for the support.