# Failed to change Background color

**URL:** <https://forums.fusetools.com/t/failed-to-change-background-color/6180>\
**Category:** Bug Reports\
**Created:** [November 25, 2015, 4:25am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180 "2015-11-25T04:25:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vicker\_Leung](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vicker_leung/32/392_2.png) [@Vicker\_Leung](https://forums.fusetools.com/u/Vicker_Leung)\
**Post date:** [November 25, 2015, 4:25am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/1 "2015-11-25T04:25:51Z")

</div>

Tried this with 0.9.1 and failed with an error E8001: None of the global resources with alias ‘#3E3E3E’ can be used here.

```auto
<Panel ux:Name="testing_panel" Background="#222222">
    <WhilePressed>
        <Change testing_panel.Background="#3E3E3E" />
    </WhilePressed>

    ...

</Panel>

```

---

<div class="post-metadata">

**Author:** ![edA-qa\_mort-ora-y](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/eda-qa_mort-ora-y/32/124_2.png) [@edA-qa\_mort-ora-y](https://forums.fusetools.com/u/edA-qa_mort-ora-y)\
**Post date:** [November 25, 2015, 7:31am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/2 "2015-11-25T07:31:09Z")

</div>

`Background` is a kind of “shortcut” property that doesn’t support animation this way (we have an issue to look into doing this). You need to use the non-shortcut approach:

```auto
<Panel>
  <SolidColor ux:Name="back_color" Background="#222222">
  <WhilePressed>
    <Change back_color.Background="#3E3E3E" />
  </WhilePressed>

```

---

<div class="post-metadata">

**Author:** ![Vicker\_Leung](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vicker_leung/32/392_2.png) [@Vicker\_Leung](https://forums.fusetools.com/u/Vicker_Leung)\
**Post date:** [November 25, 2015, 8:27am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/3 "2015-11-25T08:27:23Z")

</div>

Thanks. Good to know. It’s better than adding a `Rectangle` inside the Panel and trying to change the Rectangle fill 🙂

---

<div class="post-metadata">

**Author:** ![Vicker\_Leung](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vicker_leung/32/392_2.png) [@Vicker\_Leung](https://forums.fusetools.com/u/Vicker_Leung)\
**Post date:** [November 25, 2015, 8:34am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/4 "2015-11-25T08:34:03Z")

</div>

Umm… no luck.

E8001: back\_color.Background is not a valid property path

---

<div class="post-metadata">

**Author:** ![edA-qa\_mort-ora-y](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/eda-qa_mort-ora-y/32/124_2.png) [@edA-qa\_mort-ora-y](https://forums.fusetools.com/u/edA-qa_mort-ora-y)\
**Post date:** [November 25, 2015, 8:37am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/5 "2015-11-25T08:37:43Z")

</div>

Oops, sorry, I messed up the example, it should refer to `Color` not background:

```auto
<Panel>
  <SolidColor ux:Name="back_color" Color="#222222"/>
  <WhilePressed>
     <Change back_color.Color="#3E3E3E" />
  </WhilePressed>

```

---

<div class="post-metadata">

**Author:** ![Vicker\_Leung](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vicker_leung/32/392_2.png) [@Vicker\_Leung](https://forums.fusetools.com/u/Vicker_Leung)\
**Post date:** [November 25, 2015, 8:42am UTC](https://forums.fusetools.com/t/failed-to-change-background-color/6180/6 "2015-11-25T08:42:59Z")

</div>

Cool. All good.
