Hierarchical Navigation back button

Hi, with reference to the Pages using JavaScript example

I wanted to change it from <DirectNavigation> to a <HierarchicalNaviagation> so that the "backButton" will execute <GoBack> instead…

I tried adding the following modifications to the backButton:

<Button ux:Name="backButton" ........>
    <DockPanel>
        <Image File="arrow-left-white.png" ....../>
        <Text .......>Back</Text>
    </DockPanel>
    <WhileCanGoBack>
        <Clicked>
            <GoBack />
        </Clicked>
    </WhileCanGoBack>
</Button>

Well, it doesn’t work, which is why I’m asking here :slight_smile: