# Communication between 2 ".ux" files (EdgeAnimation.Active)

**URL:** <https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867>\
**Category:** General\
**Created:** [October 14, 2015, 9:19pm UTC](https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867 "2015-10-14T21:19:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hernan\_Corrado](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hernan_corrado/32/258_2.png) [@Hernan\_Corrado](https://forums.fusetools.com/u/Hernan_Corrado)\
**Post date:** [October 14, 2015, 9:19pm UTC](https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867/1 "2015-10-14T21:19:42Z")

</div>

Hi,

Similar problem about communication between 2 “.ux” Files but now trying to execute an animation. Where the target “ENavigation” is in MainView.ux

```auto
<!-- Header.ux -->

<StackPanel ux:Class="Header" Background="#DDD" Dock="Top">

<Button Text="Open MainMenu" Width="200" Alignment="Right">

    <Clicked>

        <!-- How I must to set the "Target" to Set the EdgeNavigation (MainView.ux) -->
        <!-- <Set Target="ENavigation.Active" Value="mainMenu"/> -->

    </Clicked>

</Button>

<Rectangle Height="1" Margin="0,5,0,0" Fill="#F00" />

</StackPanel>

```

```auto
<!-- MainView.ux -->

<App Theme="Basic" Background="#EEEEEE">

<EdgeNavigator ux:Name="ENavigation">

    <StackPanel Width="200" EdgeNavigation.Edge="Left" ux:Name="mainMenu" Background="#212831">

        <ActivatingAnimation>
            <Change translationMainView.X="200" />
        </ActivatingAnimation>

        <Button Text="Close MainMenu">
            <Clicked>
                <Set Target="ENavigation.Active" Value="ENavigation" />
            </Clicked>
        </Button>

    </StackPanel>

    <DockPanel>

        <Translation ux:Name="translationMainView" />

        <!-- Header External (File Header.ux) >>> Not Working Set Target <<< -->
        <Header/>

        <!-- Header Internal (Working OK Set Target) -->

        <!--

        <StackPanel Background="#DDD" Dock="Top">

            <Button Text="Open MainMenu" Width="200" Alignment="Right">
                <Clicked>
                    <Set Target="ENavigation.Active" Value="mainMenu"/>
                </Clicked>
            </Button>

            <Rectangle Height="1" Margin="0,5,0,0" Fill="#F00" />

        </StackPanel>

        -->

        <!-- Just a ScrollView -->
        <ScrollView>

            <StackPanel Alignment="Top">

                <Rectangle Width="300" Height="768" Background="#123020" />

            </StackPanel>

        </ScrollView>

    </DockPanel>

</EdgeNavigator>
</App>

```

Zipped File: [https://fuseweb.azureedge.net/forum-user-uploads/2016/08/22/YeHaYUNRrSWc-legacy-files-bqkRVSZcAufzHivj-sEChJtlE-4rUX6bw1BhIw0EM.zip](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/YeHaYUNRrSWc-legacy-files-bqkRVSZcAufzHivj-sEChJtlE-4rUX6bw1BhIw0EM.zip)

---

<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:** [October 15, 2015, 8:57am UTC](https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867/2 "2015-10-15T08:57:48Z")

</div>

Hi! As a quick win, you could put the `Clicked` trigger on your `Header` instance in MainView.ux. Then you would have direct access to the target you’re trying to animate.

So instead of

```auto
 <Header/>

```

do

```auto
<Header>
    <Clicked>
        <!-- your animation -->
    </Clicked>
</Header>

```

This of course will make the whole `Header` clickable, but it looks like that is what you are trying to achieve from looking at your code.

Let me know if this is not sufficient 🙂

---

<div class="post-metadata">

**Author:** ![Hernan\_Corrado](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hernan_corrado/32/258_2.png) [@Hernan\_Corrado](https://forums.fusetools.com/u/Hernan_Corrado)\
**Post date:** [October 15, 2015, 2:28pm UTC](https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867/3 "2015-10-15T14:28:32Z")

</div>

Ty Kristian, works fine, but I need that just the button inside the (Header.ux) dispatch the Clicked event.

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [October 16, 2015, 9:29am UTC](https://forums.fusetools.com/t/communication-between-2-ux-files-edgeanimation-active/4867/4 "2015-10-16T09:29:59Z")

</div>

Hernan: Thanks for highlighting this issue. We are currently investigating best practice for solving this scenario.

For now, the quickest solution for you is to inline your header code in your main view.
