Intersoft ClientUI Documentation
AutoDetectNavigationDirection Property (UXFrame)
Example 



Gets or sets a value that indicates whether the navigation direction should be automatically detected. When set to true, this property works with page transition and transition effect to automatically determines which transition to be applied based on the navigation direction.
Syntax
<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);
}
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.

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
        }
    }
}
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

UXFrame Class
UXFrame Members
Navigation Overview

Send Feedback