# Property default value

**URL:** <https://forums.fusetools.com/t/property-default-value/1607>\
**Category:** Bug Reports\
**Created:** [December 22, 2015, 3:57pm UTC](https://forums.fusetools.com/t/property-default-value/1607 "2015-12-22T15:57:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enguerran\_Henniart](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@Enguerran\_Henniart](https://forums.fusetools.com/u/Enguerran_Henniart)\
**Post date:** [December 22, 2015, 3:57pm UTC](https://forums.fusetools.com/t/property-default-value/1607/1 "2015-12-22T15:57:40Z")

</div>

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 :

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

```

MyComponent.ux :

```auto
<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](https://www.fusetools.com/community/forums/bug_reports/alignment_property_preventing_the_project_to_build)

Please launch the preview before copy/pasting this code

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [December 22, 2015, 4:03pm UTC](https://forums.fusetools.com/t/property-default-value/1607/2 "2015-12-22T16:03:43Z")

</div>

Thanks, this is on record now.

---

<div class="post-metadata">

**Author:** ![Bjorn-Olav\_Strand](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bjorn-olav_strand/32/583_2.png) [@Bjorn-Olav\_Strand](https://forums.fusetools.com/u/Bjorn-Olav_Strand)\
**Post date:** [December 22, 2015, 4:28pm UTC](https://forums.fusetools.com/t/property-default-value/1607/3 "2015-12-22T16:28:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Enguerran\_Henniart](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@Enguerran\_Henniart](https://forums.fusetools.com/u/Enguerran_Henniart)\
**Post date:** [December 23, 2015, 1:09pm UTC](https://forums.fusetools.com/t/property-default-value/1607/4 "2015-12-23T13:09:07Z")

</div>

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

Can be closed.

Thanks !
