Intersoft ClientUI Documentation
How-to: Navigate to a Page using Command
See Also Send Feedback
Intersoft ClientUI 7 > ClientUI Fundamentals > Navigation Overview > Navigation How-to Topics > How-to: Navigate to a Page using Command

Glossary Item Box

This example shows how to navigate to a UXPage using command.

Example

Description

The ClientUI navigation framework is built around the commanding semantics which allows certain features of the navigation to be executed through declarative definition in the XAML markup. The commanding semantics is also an ideal approach for MVVM pattern development.

ClientUI already includes several predefined commands for navigation that you can use in your application such as Navigate command.

The following code example shows how to navigate to a page using Navigate command assigned in a button.

Code

XAML Copy Code
<Intersoft:UXPage
        xmlns:Intersoft="http://intersoft.clientui.com/schemas">
    <StackPanel>
        <Intersoft:UXButton Content="Navigate to Home" 
                            Command="Intersoft:NavigationCommands.Navigate"
                            CommandParameter="/Home" />
    </StackPanel>
</Intersoft:UXPage>

See Also

©2012. All Rights Reserved.