Intersoft ClientUI Documentation
NavigationState Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXCollection Namespace > UXNavigationPaneItem Class : NavigationState Property






Gets or sets the URI which determines the base navigation state of the this control.

Syntax

Visual Basic (Declaration) 
Public Property NavigationState As Uri
Visual Basic (Usage)Copy Code
Dim instance As UXNavigationPaneItem
Dim value As Uri
 
instance.NavigationState = value
 
value = instance.NavigationState
C# 
public Uri NavigationState {get; set;}
Delphi 
public read-write property NavigationState: Uri; 
JScript 
public function get,set NavigationState : Uri
Managed Extensions for C++ 
public: __property Uri* get_NavigationState();
public: __property void set_NavigationState( 
   Uri* value
);
C++/CLI 
public:
property Uri^ NavigationState {
   Uri^ get();
   void set (    Uri^ value);
}

Example

XAML Copy Code
<Intersoft:UXNavigationPane>

    <Intersoft:UXNavigationPaneItem Header="Overview" NavigateUri="/Overview/Home" NavigationState="/Overview" IsDefaultNavigationSource="True" Icon="Assets/Images/Home.png">
        ...
    </Intersoft:UXNavigationPaneItem>
    
    <Intersoft:UXNavigationPaneItem Header="Mail" NavigateUri="/Mail/Inbox" NavigationState="/Mail" Icon="Assets/Images/Email.png">
        ...
    </Intersoft:UXNavigationPaneItem>

    <Intersoft:UXNavigationPaneItem Header="Contacts" NavigateUri="/Contacts/All" NavigationState="/Contacts" Icon="Assets/Images/Contact.png">
        ...
    </Intersoft:UXNavigationPaneItem>

<Intersoft:UXNavigationPane>

Remarks

In addition to the basic navigation capability such as explained in the earlier section, UXNavigationPane also supports many of the advanced features available in ClientUI navigation framework. One of the noteworthy features is the automatic synchronization with the current navigation URI.

When the NavigateUri property of UXNavigationPaneItem is specified and target a navigation frame that integrated to browser, the item will perform page navigation when it is selected. More importantly, the UXNavigationPaneItem will also be consistently selected when users navigate to a page that matches the item's NavigateUri through other means, such as typing directly in the browser's address bar, loading the page from browser's bookmark, or navigate to the page from other navigation source. In addition, the nested navigation source within the selected item will also be automatically synchronized to ensure consistent navigation experiences. To be more exact, the supported navigation source includes all controls that implement INavigationSource such as UXNavigationButton, UXToolBarButton, as well as UXTreeViewItem.

UXNavigationPane also supports the scenario where the NavigateUri property value might differ with the base navigation state to synchronize during page navigation. For examples, consider a scenario where the Mail item should navigate to /Mail/Inbox when clicked. However, the desired navigation state for synchronization is /Mail, so that page navigation to either /Mail, /Mail/Outbox, or /Mail/Follow-ups will automatically select the Mail item. To achieve this scenario, you set the NavigationState property of the UXNavigationPaneItem to the desired value that represents the base navigation URI to synchronize.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.