Property default value

Hi,

default values for Property doesn’t seem to work. Not sure if bug or I’m doing it wrong…

Here is a test case :

MainView.ux :

<App Theme="Basic">
    <MyComponent/> <!-- in the center -->
    <!-- <MyComponent RectAlignment="BottomLeft"/> --> <!-- Will be in the bottomleft -->
</App>

MyComponent.ux :

<Panel ux:Name="myComponent" ux:Class="MyComponent">
    <Alignment ux:Property="RectAlignment" ux:Value="BottomRight" />

    <Rectangle Height="200" Width="200" Fill="Blue" Alignment="{Property myComponent.RectAlignment}"/>
</Panel>

PS : maybe not the best test case as it also shows this problem : https://www.fusetools.com/community/forums/bug_reports/alignment_property_preventing_the_project_to_build

Please launch the preview before copy/pasting this code

Thanks, this is on record now.

I also experienced this. I think is the same reason that codebehind does not work on elements in Preview mode.

Fixed in (upcoming) 0.9.6 : https://www.fusetools.com/community/forums/permalink/2d6bfc0d-8829-4531-a63f-6e5985d89a1c

Can be closed.

Thanks !