# Navigation - with Sidebar

**URL:** <https://forums.fusetools.com/t/navigation-with-sidebar/3502>\
**Category:** How-to Discussions\
**Created:** [September 2, 2015, 9:43pm UTC](https://forums.fusetools.com/t/navigation-with-sidebar/3502 "2015-09-02T21:43:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreseku](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@andreseku](https://forums.fusetools.com/u/andreseku)\
**Post date:** [September 2, 2015, 9:43pm UTC](https://forums.fusetools.com/t/navigation-with-sidebar/3502/1 "2015-09-02T21:43:21Z")

</div>

Hi,

I’m trying and mixing some samples. 🙂

So, I trying to change the main\_content in the Sidebar-Samples.

For Example the RotatingSidebar:

There i have following part:

```auto
<Panel ux:Name="content" TransformOrigin="TopLeft">
    <LinearNavigation ux:Name="myPages"/>

    <Page ux:Name="page1" Background="#FDF0CC"/>
    <Page ux:Name="page2" Background="#F7CAB1"/>
    <Page ux:Name="page3" Background="#E8A0A2"/>

    <!--<Grid RowCount="4">
    <Panel><SolidColor Color="#FDF0CC" /></Panel>
    <Panel><SolidColor Color="#F7CAB1" /></Panel>
    <Panel><SolidColor Color="#E8A0A2" /></Panel>
    <Panel><SolidColor Color="#C2768E" /></Panel>
    </Grid>-->
</Panel>

```

As you can see, I try to use some pages…and try to navigate trough them with the help of the SidebarButtons (for example just one Button):

```auto
<StackPanel ux:Name="profileButton">
    <SidebarIcon>
        <AccountIcon />
    </SidebarIcon>
    <Text>PROFILE</Text>
    <Clicked>
        <Set showMenu.Value="false" />
        <Set myPages.Active="page1"/>
    </Clicked>
</StackPanel>

```

That isn’t working at all. What should I do?

NavigateTo, and a DirectNavigation, isn’t working too.

---

<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:** [September 3, 2015, 2:44am UTC](https://forums.fusetools.com/t/navigation-with-sidebar/3502/2 "2015-09-03T02:44:55Z")

</div>

Hi!

What do you mean by “not working” ? Does it crash? if so, what error messages do you get? Please describe what’s happening more carefully.

---

<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:** [September 3, 2015, 8:53am UTC](https://forums.fusetools.com/t/navigation-with-sidebar/3502/3 "2015-09-03T08:53:26Z")

</div>

Hi!

Your pages are probably missing `<EnteringAnimation />` and `<ExitingAnimation/>`

Try adding this just above your `<LinearNavigation />`

```auto
<Style>
    <Page>
        <EnteringAnimation>
            <Move X="1" RelativeTo="Size" Duration="0.5" />
        </EnteringAnimation>
        <ExitingAnimation>
            <Move X="1" RelativeTo="Size" Duration="0.5" />
        </ExitingAnimation>
    </Page>
</Style>

```

You can tweak those however you like to get your own transitions.

---

<div class="post-metadata">

**Author:** ![andreseku](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@andreseku](https://forums.fusetools.com/u/andreseku)\
**Post date:** [September 3, 2015, 11:58am UTC](https://forums.fusetools.com/t/navigation-with-sidebar/3502/4 "2015-09-03T11:58:34Z")

</div>

@Anders, the pages just didn’t changed by clicking the buttons.

@Kristian, thanks. Now the pages are changing/switching by clicking the buttons 🙂
