Intersoft ClientUI Documentation
NavigationDirection Enumeration
Example Example 



Specifies value that describes the direction of current navigation.
Syntax
Public Enum NavigationDirection 
   Inherits System.Enum
Dim instance As NavigationDirection
public enum NavigationDirection : System.Enum 
public enum class NavigationDirection : public System.Enum 
Members
MemberDescription
Back The back navigation is performed.
Forward The forward navigation is performed.
Itself The navigation is performed to an identical URI source or content.
New New navigation is performed.
Unknown The navigation direction can't be determined.
Remarks

UXFrame provides an advanced mechanism to automatically detect the direction of the current navigation process. Called AutoDetectNavigationDirection, this feature makes it easy for you to determine the position of the target destination relative to the current navigation position, which enables you to perform certain actions based on the navigation direction. There are five type of NavigationDirection member that can be use, such as: Back, Forward, Itself, New and Unknown.

For more information, see Navigation Overview.

Example
The following example shows how to enable automatic navigation direction feature.
<Intersoft:UXFrame Name="ContentFrame"
                   EnablePageTransition="True"
                   AutoDetectNavigationDirection="True">
</Intersoft:UXFrame>
Once the feature is enabled, you can obtain the information of the navigation directions in the event data of the Navigating event, which is shown in the following example.
void ContentFrame_Navigating(object sender, NavigatingCancelEventArgs e)
{
    if ((e.FragmentNavigationDirection & FragmentNavigationDirection.Child) == FragmentNavigationDirection.Child)
    {
        if (e.UserNavigationDirection == NavigationDirection.New)
        {
            // do something
        }
    }
}
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Intersoft.Client.UI.Navigation.NavigationDirection

Requirements

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

Reference

Intersoft.Client.UI.Navigation Namespace

Send Feedback