Intersoft ClientUI 8 > ClientUI Fundamentals > Navigation Overview > Navigation How-to Topics > How-to: Navigate to a Page using Command |
This example shows how to navigate to a UXPage using command.
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.
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> |