PageControl Navigation

Hi,

I had a problem when Iam trying to navigate between several pages, that when I set the Active attribute to specific page, it navigates to other pages written first in the code before my chosen page.

Try to navigate from red to blue in my example.

Hi Huda,

Use DirectNavigation but don’t forget to set Active property to the specific page. For example



Add also style to the page exiting animation or it might not works.
<Style>
  <Page>
    <ExitingAnimation>
        <Move X="-1" RelativeTo="Size" Duration="0.5"/>
    </ExitingAnimation>
  </Page>

</Style>

<DirectNavigation Active="videoPage"/>

Yes it works with Direct Navigation

Thank you

This works until you need <GoBack /> to work.

Andreas Biørn-Hansen: Then you can use HierarchicalNavigation, since that has the concept of history. :slight_smile:

That said, expect some major improvements to how navigation is done in Fuse soon. (We definitely agree that it can be a bit cumbersome to understand all the details of the current solution).