Intersoft ClientUI Documentation
NavigateUri Property (UXButton)

Gets or sets the URI to navigate when this button is clicked.
<CategoryAttribute("Common Properties")>
Public Property NavigateUri As Uri
Dim instance As UXButton
Dim value As Uri
instance.NavigateUri = value
value = instance.NavigateUri
[CategoryAttribute("Common Properties")]
public Uri NavigateUri {get; set;}
[CategoryAttribute("Common Properties")]
property Uri^ NavigateUri {
   Uri^ get();
   void set (    Uri^ value);

UXButton implements INavigationSource interface, which exposes NavigationUri and TargetName property. Therefore, UXButton can be used to facilitate navigation between pages in a valid navigation host such as UXFrame. To learn more about the navigation host and related features, see Navigation Overview.

The following example shows how to use NavigateUri property to navigate the pages in the project by using UXNavigationButton. The UXNavigationButton is a specialized button control derives from UXButton, featuring more sophisticated navigation visual state and features.

Copy Code
<StackPanel Orientation="Horizontal" Intersoft:DockPanel.Dock="Top">
    <Intersoft:UXNavigationButton Content="Home" NavigateUri="/Home"/>
    <Intersoft:UXNavigationButton Content="Products" NavigateUri="/Products"/>
    <Intersoft:UXNavigationButton Content="Services" NavigateUri="/Services"/>
    <Intersoft:UXNavigationButton Content="About" NavigateUri="/About"/>

The result looks like the following figure.

For a more complete walkthrough that shows how to define the UXFrame and use UXNavigationButton to navigate to the pages in the frame, see Walkthrough: Create Simple Website Navigation Using Frame, Navigation Button and Hyperlink.

If your page contains multiple UXFrame instances, you can set the UXNavigationButton to navigate the page on a particular frame by setting the TargetName property of the button to the name of the target frame.

Beside local pages, you can also use UXButton to navigate to external URIs such as a web page. Certain safe protocols are supported as well, including http, https, and mailto.

If you navigate to an external web page, you can also set the target where the page will be displayed. You set the TargetName property to one of the following values:

Although UXButton implements the core navigation functionality, it is recommended to use UXNavigationButton to perform page navigation as it is designed with more sophisticated visual states and built-in features to track the navigation process. The following example shows how to use UXNavigationButton to navigate to external URIs.

Copy Code
<StackPanel Orientation="Horizontal" Intersoft:DockPanel.Dock="Top">

    <Intersoft:UXNavigationButton Content="ClientUI Home" 

    <Intersoft:UXNavigationButton Content="ClientUI Live Samples" 

    <Intersoft:UXNavigationButton Content="Contact Us" 


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


UXButton Class
UXButton Members

Send Feedback