# Trigger inside anoter trigger not work?

**URL:** <https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777>\
**Category:** How-to Discussions\
**Created:** [March 24, 2017, 3:38pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777 "2017-03-24T15:38:59Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 24, 2017, 3:38pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/1 "2017-03-24T15:38:59Z")

</div>

That’s work:

```auto
<Each Items="{Items}">
    <Panel>
        <Clicked>
             <NavigateTo Target="{resource}"/>
        </Clicked>
        <WhileActive>
            <DebugAction Message="Current Page is active"/>
        </WhileActive>
    </Panel>
</Each>

```

That doesn’t:

```auto
<Each Items="{Items}">
    <Panel>
        <Clicked>
             <NavigateTo Target="{resource}"/>
             <WhileActive>
                  <DebugAction Message="Current Page is active"/>
             </WhileActive>
        </Clicked>
    </Panel>
</Each>

```

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [March 27, 2017, 1:47pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/2 "2017-03-27T13:47:47Z")

</div>

A couple of things to try:

- Does it work if you remove the `NavigateTo`? It could be that you navigate away from the page _before_ the `WhileActive` check is performed.

- You may want to add `Bypass="Never"` to the WhileActive trigger to ensure that it also fires on the very first page you’re on (e.g. without having to navigate _to_ that page first). Of course, this would also be the case for your original (working) example.

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 27, 2017, 2:11pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/3 "2017-03-27T14:11:48Z")

</div>

**Remi Pedersen** thanks! Bypass=“Never” solve my problem

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 27, 2017, 2:20pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/4 "2017-03-27T14:20:06Z")

</div>

But… If I place something different than DebugAction it doesn’t trigger =(

For example:

```auto
    <Clicked>
             <NavigateTo Target="{resource}"/>
             <WhileActive Bypass="Never">
                    <!-- Not Triggered -->
                    <Change popup.Visibility="Visible"/>
                    <Change mask.Scale="1" Duration="0.45" Easing="CircularOut" EasingBack="QuinticIn"/>
                     <!-- Triggered -->
                    <DebugAction Message="Current Page is active"/>
             </WhileActive>
    </Clicked>

```

PS Removing `<NavigateTo>` doesn’t solve problem as well

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [March 27, 2017, 2:30pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/5 "2017-03-27T14:30:12Z")

</div>

Can you explain what you’re trying to achieve in this case?  
I’m starting to suspect double-triggers isn’t the right solution. 🙂

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 27, 2017, 2:44pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/6 "2017-03-27T14:44:08Z")

</div>

I have LinearNavigator with cards created in scrollview manner with always displaying 3 cards in screen. When user touch to one of item (that not active in current time) it became active (navigateTo) like in this example:  
[https://www.fusetools.com/examples/navigation-animation](https://www.fusetools.com/examples/navigation-animation)

But if user touched already active card I want show some lightbox or popup over it.

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [March 27, 2017, 2:59pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/7 "2017-03-27T14:59:22Z")

</div>

Hmm, it seems like the issue might be specifically with the combination of Clicked, WhileActive and Change. Other combinations of triggers and animators work in my tests.  
Also, if you switch WhileActive and Clicked around you may be getting better results.

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 27, 2017, 3:13pm UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/8 "2017-03-27T15:13:09Z")

</div>

Unfortunately I can’t switch WhileActive and Clicked around. It’s not work for me.

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [March 28, 2017, 8:14am UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/9 "2017-03-28T08:14:01Z")

</div>

This should give the same behavior as you aimed for with your previous snippet:

```auto
<Clicked>
    <NavigateTo Target="{resource}"/>
</Clicked>
<WhileActive Bypass="Never">
    <Clicked>
        <Change popup.Visibility="Visible"/>
        <Change mask.Scale="1" Duration="0.45" Easing="CircularOut" EasingBack="QuinticIn"/>
        <DebugAction Message="Current Page is active"/>
    </Clicked>
</WhileActive>

```

(Note that I’ve just used the same code you had there. I suspect you want to deal with the visibility with either a `Set` or a duration of some kind, otherwise it’ll just be visible for a single frame)

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 28, 2017, 9:37am UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/10 "2017-03-28T09:37:02Z")

</div>

Excellent! That’s what I need=)

---

<div class="post-metadata">

**Author:** ![maxgraey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/maxgraey/32/347_2.png) [@maxgraey](https://forums.fusetools.com/u/maxgraey)\
**Post date:** [March 28, 2017, 10:53am UTC](https://forums.fusetools.com/t/trigger-inside-anoter-trigger-not-work/4777/11 "2017-03-28T10:53:25Z")

</div>

Final version:

```auto
<WhileActive>
  <Clicked>
    <Change popup.Visibility="Visible"/>
    <Change mask.Scale="1" Duration="0.45" Easing="CircularOut" EasingBack="QuinticIn"/>
  </Clicked>
</WhileActive>
<WhileInactive>
  <Clicked>
    <NavigateTo Target="{resource}"/>
  </Clicked>
</WhileInactive>

```
