Intersoft.Client.UI.Navigation Namespace : NavigationDirection Enumeration |
Public Enum NavigationDirection Inherits System.Enum
Dim instance As NavigationDirection
public enum NavigationDirection : System.Enum
public enum class NavigationDirection : public System.Enum
Member | Description |
---|---|
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. |
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.
<Intersoft:UXFrame Name="ContentFrame" EnablePageTransition="True" AutoDetectNavigationDirection="True"> </Intersoft:UXFrame>
void ContentFrame_Navigating(object sender, NavigatingCancelEventArgs e) { if ((e.FragmentNavigationDirection & FragmentNavigationDirection.Child) == FragmentNavigationDirection.Child) { if (e.UserNavigationDirection == NavigationDirection.New) { // do something } } }
System.Object
System.ValueType
System.Enum
Intersoft.Client.UI.Navigation.NavigationDirection
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