# Triggerable Resource Bindings

**URL:** <https://forums.fusetools.com/t/triggerable-resource-bindings/3736>\
**Category:** Feature Suggestions\
**Created:** [January 6, 2017, 6:39pm UTC](https://forums.fusetools.com/t/triggerable-resource-bindings/3736 "2017-01-06T18:39:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elizabeth](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Elizabeth](https://forums.fusetools.com/u/Elizabeth)\
**Post date:** [January 6, 2017, 6:39pm UTC](https://forums.fusetools.com/t/triggerable-resource-bindings/3736/1 "2017-01-06T18:39:09Z")

</div>

Hey Fusers Crew,

It would be very convenient if we could change the Default Value of a Global Resource binding upon triggers … as such:

```auto
<App>
    <float4 ux:Global="MyApp.ThemeColor" ux:Value="Green" />

    <Navigator>
        <HomePage ux:Template="homePage" />
        <ProfilePage ux:Template="profilePage" />
        <SettingsPage ux:Template="settingsPage">

           <WhileTrue Value="{changeIt}">
              <float4 ux:Key="MyApp.ThemeColor" ux:Value="Blue" />
           </WhileTrue>

        </SettingsPage>
    </Navigator>
</App>

```

Please Consider my suggestion!

Cheers,

Elizabeth

---

<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:** [January 6, 2017, 6:46pm UTC](https://forums.fusetools.com/t/triggerable-resource-bindings/3736/2 "2017-01-06T18:46:08Z")

</div>

You can’t do this with globals, which are meant to be constant values, but you can do this with resources. Normally you’d use `ux:Key` to define a resource, but if you intend on changing it you need a resource setter:

```auto
<ResourceFloat4 Key="MyApp.ThemeColor" Value="0,1,0,1" ux:Name="themeColor"/>

```

You use this color with a normal resource binding `Color="{Resource MyApp.ThemeColor}"`, To change it you can then use your animatior:

```auto
<Change Target="themeColor.Value" Value="0,0,1,1"/>

```

If you are spanning across many pages you might instead bind it to a JS export:

```auto
<ResourceFloat4 Key="MyApp.ThemeColor" Value="{themeColor}"/>

```
