# Close EdgeNavigator on swipe from right

**URL:** <https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949>\
**Category:** How-to Discussions\
**Created:** [May 18, 2016, 6:30pm UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949 "2016-05-18T18:30:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://forums.fusetools.com/u/Moritz)\
**Post date:** [May 18, 2016, 6:30pm UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/1 "2016-05-18T18:30:06Z")

</div>

Hey,

I want to close the opened `EdgeNavigation` when I swipe from the right side to the left, so the reverse opening mechanism.

I tried this:

```auto
<WhileEdgeSwiped Edge="Right">

</WhileEdgeSwiped>

```

But this doesn’t exist anymore.

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [May 19, 2016, 5:23am UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/2 "2016-05-19T05:23:26Z")

</div>

`WhileEdgeSwiped` has been renamed to `EdgeSwipeAnimation` in Fuse 0.12. It seems that this has mysteriously slipped the change log, sorry about that!

---

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://forums.fusetools.com/u/Moritz)\
**Post date:** [May 19, 2016, 11:09am UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/3 "2016-05-19T11:09:50Z")

</div>

Happens 🙂

But it only fires once, I want to close the `EdgeNavigator` with a swipe from the right side, additionally to the tap:

```auto
<EdgeNavigator ux:Name="EdgeNavigator">

  <EdgeSwipeAnimation Edge="Right">
    <DebugAction Message="Right edge got swiped" />
    <NavigateTo Target="dashboard" /> // By the way, any better solution to close the EdgeNavigator?
  </EdgeSwipeAnimation>

</EdgeNavigator>

```

---

<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:** [May 19, 2016, 11:18am UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/4 "2016-05-19T11:18:43Z")

</div>

You shouldn’t mix `EdgeNavigator` and `EdgeSwipeAnimation`. `EdgeNavigator` is a high-level wrapper for edge panels that takes care of all the swiping and active navigation status.

If you need to key something to the active status of the edge panel use `ActivatingAnimation`, `WhileActive` or another such navigation trigger on that panel.

If you need something lower level then consider just using `SwipeGesture` instead and specify an edge for it. The `EdgeSwipeAnimation` looks like it might be destined for deprecation.

---

<div class="post-metadata">

**Author:** ![Moritz](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Moritz](https://forums.fusetools.com/u/Moritz)\
**Post date:** [May 19, 2016, 11:35am UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/5 "2016-05-19T11:35:46Z")

</div>

`SwipeGesture` doesn’t allow child elements, how can this trigger the close?

Edit: this works:

```auto
<SwipeGesture ux:Name="swipe" Edge="Right" />
<SwipingAnimation Source="swipe">
    <DebugAction Message="Right edge got swiped" />
    <NavigateTo Target="dashboard" />
</SwipingAnimation>

```

Still, is there a better way to close the edgenavigator?

---

<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:** [May 24, 2016, 1:44pm UTC](https://forums.fusetools.com/t/close-edgenavigator-on-swipe-from-right/6949/6 "2016-05-24T13:44:40Z")

</div>

You may wish to use the `Swiped` trigger instead of `SwipingAnimation`, as it’s tied to the firing of the action instead of being an animation bound trigger. You can also set the `Type="Simple"` on the `SwipeGesture` so it doesn’t have an open/close state: it’ll be just the raw gesture.

There isn’t really another option now.
