Intersoft.Client.UI.Navigation Namespace > UXFrame Class : AutoDetectNavigationDirection Property |
<CategoryAttribute("Common Properties")> Public Property AutoDetectNavigationDirection As Boolean
Dim instance As UXFrame Dim value As Boolean instance.AutoDetectNavigationDirection = value value = instance.AutoDetectNavigationDirection
[CategoryAttribute("Common Properties")] public bool AutoDetectNavigationDirection {get; set;}
[CategoryAttribute("Common Properties")] public: property bool AutoDetectNavigationDirection { bool get(); void set ( bool value); }
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.
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 } } }
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