# Property not in scope in Change in WhilePressed

**URL:** <https://forums.fusetools.com/t/property-not-in-scope-in-change-in-whilepressed/2230>\
**Category:** Bug Reports\
**Created:** [March 18, 2016, 2:57am UTC](https://forums.fusetools.com/t/property-not-in-scope-in-change-in-whilepressed/2230 "2016-03-18T02:57:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zolrath](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/zolrath/32/343_2.png) [@zolrath](https://forums.fusetools.com/u/zolrath)\
**Post date:** [March 18, 2016, 2:57am UTC](https://forums.fusetools.com/t/property-not-in-scope-in-change-in-whilepressed/2230/1 "2016-03-18T02:57:30Z")

</div>

Hi! With a ux:Class defined as:

```auto
<Panel ux:Class="TestButton" ux:Name="self">
    <Brush ux:Property="Fill" />
    <Rectangle ux:Name="fillColor" Layer="Background" Fill="{Property self.Fill}" />
    <WhilePressed>
        <Change fillColor.Fill="{Property self.Fill}" />
    </WhilePressed>
</Panel>

```

It fails to compile with `There is nothing named '{Property self.Fill}' in this scope, and no global resources with that alias.`

In the chat skezo found a fix in changing to Change to: `<Change Target="fillColor.Fill" Value="{Property self.Fill}" />`

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [March 29, 2016, 11:44am UTC](https://forums.fusetools.com/t/property-not-in-scope-in-change-in-whilepressed/2230/2 "2016-03-29T11:44:34Z")

</div>

Thanks for reporting! I’ve made an internal issue for it 🙂 You’ll have to use the workaround of using `Target`/`Value` for now though.
