# Getting error with TextAlignment

**URL:** <https://forums.fusetools.com/t/getting-error-with-textalignment/3022>\
**Category:** How-to Discussions\
**Created:** [April 15, 2016, 6:54pm UTC](https://forums.fusetools.com/t/getting-error-with-textalignment/3022 "2016-04-15T18:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [April 15, 2016, 6:54pm UTC](https://forums.fusetools.com/t/getting-error-with-textalignment/3022/1 "2016-04-15T18:54:35Z")

</div>

Is there anything wrong with the following code:

```auto
<Panel ux:Class="MyButton" FontSize="20" Background="#55ACEE" TextColor="#fff" TextAlignment="Center">
    <string ux:Property="Text" />
    <string ux:Property="TextAlignment" />
    <float ux:Property="FontSize" />
    <Brush ux:Property="TextColor" />
    <Rectangle Name="rect" Background="{Property this.Background}" Padding="{Property this.Padding}">
        <Text Alignment="Center" TextAlignment="{Property this.TextAlignment}" TextWrapping="Wrap" TextColor="{Property this.TextColor}" Font="RobotoMedium" FontSize="{Property this.FontSize}" Value="{Property this.Text}" />
    </Rectangle>
    <WhileEnabled>
        <WhilePressed>
            <Change Target="rect.Background" Value="#3895DB" />
        </WhilePressed>
    </WhileEnabled>
    <WhileDisabled>
        <Change Target="rect.Background" Value="#A1A1A1" />
    </WhileDisabled>
</Panel>

```

Running on the latest version **0.12.0 (build 6286)**

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [April 15, 2016, 7:32pm UTC](https://forums.fusetools.com/t/getting-error-with-textalignment/3022/2 "2016-04-15T19:32:40Z")

</div>

This is the error I’m getting: `E2009: Call to 'Fuse.Controls.PropertyBinding<Fuse.Elements.TextAlignment>(Uno.UX.Property<Fuse.Elements.TextAlignment>,Uno.UX.Property<Fuse.Elements.TextAlignment>)' has some invalid arguments (Crowder_FuseControlsText_TextAlignment_Property,Crowder_MyButton_TextAlignment_Property)`

---

<div class="post-metadata">

**Author:** ![Fernando\_Lins](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/fernando_lins/32/597_2.png) [@Fernando\_Lins](https://forums.fusetools.com/u/Fernando_Lins)\
**Post date:** [April 15, 2016, 8:25pm UTC](https://forums.fusetools.com/t/getting-error-with-textalignment/3022/3 "2016-04-15T20:25:55Z")

</div>

`TextAlignment`'s type is `TextAlignment`, not `string`.

Use `<TextAlignment ux:Property="TextAlignment" />` instead.
