# About modifying the property outside the current container?

**URL:** https://forums.fusetools.com/t/about-modifying-the-property-outside-the-current-container/6925
**Category:** How-to Discussions
**Created:** [July 3, 2015, 10:31am UTC](https://forums.fusetools.com/t/about-modifying-the-property-outside-the-current-container/6925 "2015-07-03T10:31:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mao](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Mao](https://forums.fusetools.com/u/Mao)
#### Post date: [July 3, 2015, 10:31am UTC](https://forums.fusetools.com/t/about-modifying-the-property-outside-the-current-container/6925/1 "2015-07-03T10:31:31Z")

</div>

If I tried to change the \_A\_Text.TextColor by

```auto
<Change Target="_A_Text.TextColor" Value="#000" /> 

```

inside

```auto
<EnteringAnimation></EnteringAnimation> 

```

but failed. And it only work when coding inside Navbutton

```auto
<WhilePressed></WhilePressed>

```

The coding below:

```auto
  <DockPanel ...>
      <DirectNavigation ux:Name="_nav_alp" Active="_A"/>

      <Page ux:Name="_A">
          <EnteringAnimation>
              <Change Target="_A.Visibility" Value="Visible" />

              HERE!!!

          </EnteringAnimation>
          <ExitingAnimation>
              <Change Target="_A.Visibility" Value="Hidden" />
          </ExitingAnimation>
          <Text>...</Text>
      </Page>

  </DockPanel>

  <NavigationBar Height="40" Width="260" Alignment="TopLeft">
      <GridLayout RowCount="1" ColumnCount="5" />
      <Panel ux:Class="NavAlp" />

      <Style>
         ...
      </Style>

      <NavButton ux:Name="_A_Nav">
          <Text ux:Name="_A_Text" Content="A-C"/>
          <WhilePressed>
              <NavigateTo Context="_nav_alp" Target="_A" />
              <Change Target="_A_Text.TextColor" Value="#000" /> <<<<<<<<< HERE!
          </WhilePressed>

      </NavButton> 

        ...
  </NavigationBar>

```

Thank you!

---

<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: [July 3, 2015, 12:09pm UTC](https://forums.fusetools.com/t/about-modifying-the-property-outside-the-current-container/6925/2 "2015-07-03T12:09:31Z")

</div>

Hi!

`<EnteringAnimation/>` actually works a bit different from `<WhilePressed/>` in that it animated backwards. Say the Color you set on your text is #000:

```auto
<Text TextColor="#000" ux:Name="text1"/>

```

Then you can animate from white with `<EnteringAnimation/>` from #fff like so:

```auto
<EnteringAnimation>
    <Change Target="text1" Value="#fff" />
</EnteringAnimation>

```

Please let me know if this works out for you 🙂

---

<div class="post-metadata">

### Author: ![Mao](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Mao](https://forums.fusetools.com/u/Mao)
#### Post date: [July 6, 2015, 7:08am UTC](https://forums.fusetools.com/t/about-modifying-the-property-outside-the-current-container/6925/3 "2015-07-06T07:08:32Z")

</div>

Thank you for reply!

Shouldn’t the target be text1.Color?

I found the solution that is to use ActivatingAnimation instead of EnteringAnimation then worked!

Thank!
