# How to disable the swipegesture from EdgeNavigator

**URL:** <https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123>\
**Category:** How-to Discussions\
**Created:** [April 27, 2016, 10:32pm UTC](https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123 "2016-04-27T22:32:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [April 27, 2016, 10:32pm UTC](https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123/1 "2016-04-27T22:32:40Z")

</div>

I have the following (where `SideNav` is a class for the side bar):

```auto
<EdgeNavigator>
    <SideNav Edge="Left">...</SideNav>
    <Panel ux:Name="mainPanel">
      ...
      <PageControl>
        <Page>...</Page>
        <Page>...</Page>
      </PageControl>
    </Panel>
</EdgeNavigator>

```

Sometimes when swiping for the page control the `EdgeNavigator` may activate, I have a button that will navigate to the `SideNav` So I want to restrict navigation only to that button instead of swiping. So is there a way to easily disable the `SwipeGesture` of the `EdgeNavigator`

---

<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:** [April 28, 2016, 8:35am UTC](https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123/2 "2016-04-28T08:35:22Z")

</div>

If you don’t want to swipe into the side menu then I suggest you just implement it as a regular Panel+LinearNavigation, which by default doesn’t listen to any swipes.

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [April 28, 2016, 6:12pm UTC](https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123/3 "2016-04-28T18:12:22Z")

</div>

But how would I have the `SideNav` able to appear from anywhere?

---

<div class="post-metadata">

**Author:** ![COCPORN](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cocporn/32/576_2.png) [@COCPORN](https://forums.fusetools.com/u/COCPORN)\
**Post date:** [April 29, 2016, 9:26am UTC](https://forums.fusetools.com/t/how-to-disable-the-swipegesture-from-edgenavigator/5123/4 "2016-04-29T09:26:49Z")

</div>

You could try with something like this if you want to use a `Button`:

```auto
<App Theme="Basic">
    <Panel>        
        <Panel Width="150" Color="#f58" ux:Name="sidePanel" Opacity="0.8" Alignment="Left">
            <Translation X="-1" RelativeTo="Size" />
        </Panel>
        <WhileTrue ux:Name="showPanel">
            <Move Target="sidePanel" X="1" RelativeTo="Size" Duration="0.3" Easing="QuadraticInOut" />
        </WhileTrue>    
        <Button Text="Toggle" Alignment="Center">
            <Clicked>
                <Toggle Target="showPanel" />
            </Clicked>
        </Button>
    </Panel>
</App>

```
