# Change SolidColor

**URL:** <https://forums.fusetools.com/t/change-solidcolor/5088>\
**Category:** How-to Discussions\
**Created:** [April 22, 2015, 1:53pm UTC](https://forums.fusetools.com/t/change-solidcolor/5088 "2015-04-22T13:53:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_Karmy1](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cristian_karmy1/32/480_2.png) [@Cristian\_Karmy1](https://forums.fusetools.com/u/Cristian_Karmy1)\
**Post date:** [April 22, 2015, 1:53pm UTC](https://forums.fusetools.com/t/change-solidcolor/5088/1 "2015-04-22T13:53:28Z")

</div>

I am triyng to change the color of a button with a trigger but I cant get work. How can I change the color if is set with a Solid Color like:

```auto
<Button Focus.IsFocusable="true">

<SolidColor Color="0,0,0,1" />

 <Tapped>
     <GiveFocus />
 </Tapped>

 <Focusing>

 </Focusing>

 </Button>

```

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [April 22, 2015, 1:58pm UTC](https://forums.fusetools.com/t/change-solidcolor/5088/2 "2015-04-22T13:58:46Z")

</div>

This is from my head, but I think you can do:

```auto
<Button Focus.IsFocusable="true">

    <Rectangle ux:Binding="Appearance">
        <SolidColor Color="0,0,0,1" ux:Name="bgColor" />
    </Rectangle>

    <Tapped>
        <GiveFocus />
    </Tapped>

    <Focusing>
        <Change Target="bgColor.Color" Value="#345" />
    </Focusing>

</Button>

```

You can also drop focus like this:

```auto
<Button>
    <SolidColor Color="0,0,0,1" ux:Name="bgColor" />
    <Pressing>
        <Change Target="bgColor.Color" Value="#345" />
    </Pressing>
</Button>

```

---

<div class="post-metadata">

**Author:** ![Cristian\_Karmy1](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cristian_karmy1/32/480_2.png) [@Cristian\_Karmy1](https://forums.fusetools.com/u/Cristian_Karmy1)\
**Post date:** [April 22, 2015, 2:29pm UTC](https://forums.fusetools.com/t/change-solidcolor/5088/3 "2015-04-22T14:29:17Z")

</div>

Thanks! Works great!
