Intersoft ClientUI Documentation
How-to: Navigate Forward Through Navigation History
See Also Send Feedback
Intersoft ClientUI 7 > ClientUI Fundamentals > Navigation Overview > Navigation How-to Topics > How-to: Navigate Forward Through Navigation History

Glossary Item Box

The following examples show how to navigate forward through the navigation history using command and API.

Example

Description

The following code shows how to navigate forward through navigation history using command.

Code

XAML Copy Code
<Intersoft:UXPage...
    xmlns:Intersoft="http://intersoft.clientui.com/schemas">
    ...
    <StackPanel... >
        <Intersoft:UXButton Name="ForwardButton" Content="Forward" Command="Intersoft:NavigationCommands.BrowseForward" />
    </StackPanel>
</Intersoft:UXPage>

Example

Description

The following code shows how to navigate forward through navigation history using code.

Code

XAML Copy Code
<Intersoft:UXFrame x:Name="ContentFrame"... >
    <Intersoft:UXFrame.UriMapper>
        <Intersoft:UriMapper>
            <Intersoft:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
            <Intersoft:UriMapping Uri="/{page}" MappedUri="/Views/{page}.xaml"/>
        </Intersoft:UriMapper>
    </Intersoft:UXFrame.UriMapper>
</Intersoft:UXFrame>

<Intersoft:UXButton Name="ForwardButton" Content="Forward" />
C# Copy Code
public MainPage()
{
    ...
    ForwardButton.Click += new RoutedEventHandler(ForwardButton_Click);
}

void ForwardButton_Click(object sender, RoutedEventArgs e)
{
    if (ContentFrame.CanGoForward) {
        ContentFrame.GoForward();
    }
}

See Also

©2012. All Rights Reserved.