Intersoft ClientUI Documentation
AutoDetectNavigationDirection Property
See Also  Example Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXFrame Class : AutoDetectNavigationDirection Property






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

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property AutoDetectNavigationDirection As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UXFrame
Dim value As Boolean
 
instance.AutoDetectNavigationDirection = value
 
value = instance.AutoDetectNavigationDirection
C# 
[CategoryAttribute("Common Properties")]
public bool AutoDetectNavigationDirection {get; set;}
Delphi 
public read-write property AutoDetectNavigationDirection: Boolean; 
JScript 
CategoryAttribute("Common Properties")
public function get,set AutoDetectNavigationDirection : boolean
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property bool get_AutoDetectNavigationDirection();
public: __property void set_AutoDetectNavigationDirection( 
   bool value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property bool AutoDetectNavigationDirection {
   bool get();
   void set (    bool value);
}

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.

For more information, see Navigation Overview.

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.