Binding stroke color

Hello.
I am currently using Fuse Ver 0.28.1 on MacOS Sierra.

I´ve been getting the following error since 0.27.1

System.NullReferenceException: Object reference not set to an instance of an object at Fuse.Drawing.Stroke

when trying to bind a stroke color to an Observable

@Knatten confirmed the bug using the following code

<App>
    <JavaScript>
        module.exports = {color: "#000"}
    </JavaScript>

    <Rectangle Width="200" Height="50" Color="Blue">
        <Stroke Width="5" Color="{color}" />
    </Rectangle>
</App>```

Just to let you know, in 0.28.1 it is still not working

This does indeed seem like a bug.

In the meantime, here is a workaround:

<App>
	<JavaScript>
		module.exports = {color: "#f0f"}
	</JavaScript>

	<Rectangle Width="200" Height="50" Color="Blue">
		<DataBinding Target="myStroke.Color" Key="color" />
		<Stroke ux:Name="myStroke" Width="5" Color="#000"/>
	</Rectangle>
</App>

This works because i’ve given a “default” value to the Stroke which avoids the null reference.

FYI: This has been fixed since Fuse 0.29 Thanks!