Intersoft ClientUI Documentation
NavigationDirection Enumeration
Example  See Also  Send Feedback
Intersoft.Client.UI.Navigation Namespace : NavigationDirection Enumeration






Specifies value that describes the direction of current navigation.

Syntax

Visual Basic (Declaration) 
Public Enum NavigationDirection 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As NavigationDirection
C# 
public enum NavigationDirection : System.Enum 
Delphi 
public enum NavigationDirection = class(System.Enum)
JScript 
public enum NavigationDirection extends System.Enum
Managed Extensions for C++ 
__value public enum NavigationDirection : public System.Enum 
C++/CLI 
public enum class NavigationDirection : public System.Enum 

Members

MemberDescription
BackThe back navigation is performed.
ForwardThe forward navigation is performed.
ItselfThe navigation is performed to an identical URI source or content.
NewNew navigation is performed.
UnknownThe navigation direction can't be determined.

Example

The following example shows how to enable automatic navigation direction feature.
XAMLCopy Code
<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.
C#Copy Code
void ContentFrame_Navigating(object sender, NavigatingCancelEventArgs e)
{
    if ((e.FragmentNavigationDirection & FragmentNavigationDirection.Child) == FragmentNavigationDirection.Child)
    {
        if (e.UserNavigationDirection == NavigationDirection.New)
        {
            // do something
        }
    }
}

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.

Inheritance Hierarchy

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

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.