Intersoft ClientUI Documentation
AutoDetectNavigationDirection Property
See Also  Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXTabControl 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 UXTabControl
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);
}

Remarks

UXTabControl provides an advanced mechanism to automatically detect the direction of the current navigation process. Called AutoDetectNavigationDirection, this feature automatically determines the navigation direction of the target selection relative to the current active selection.

The following example shows how to enable automatic navigation direction feature.

XAML Copy Code
<Intersoft:UXTabControl Name="TabControl1"
                        EnablePageTransition="True"
                        AutoDetectNavigationDirection="True">
</Intersoft:UXTabControl>

When the page transition and navigation direction detection is enabled, UXTabControl automatically applies the visual transition based on the navigation direction. You can set the visual transition to be applied differently for each navigation direction. The following table lists the basic properties related to visual transitions and its default values.

Property Default Value Description
BackTransitionEffect SlideLeft This transition will be applied when the index of the target tab item is before the current active selection.
ForwardTransitionEffect SlideRight This transition will be applied when the index of the target tab item is after the current active selection.
DefaultTransitionEffect Fading This transition will be applied when the navigation direction cannot be determined, such as during the first load.

You can choose one of the TransitionEffect to apply to your visual transition properties:

  • Fading
  • SlideUp
  • SlideDown
  • SlideLeft
  • SlideRight
  • ZoomIn
  • ZoomOut
  • FlipLeft
  • FlipRight
  • FlipUp
  • FlipDown
  • Cube
  • Direct
  • Custom 

The following example shows how to customize the visual transitions for back, forward and new navigation mode.

XAML Copy Code
<Intersoft:UXTabControl Name="TabControl1"
                        EnablePageTransition="True"
                        AutoDetectNavigationDirection="True">
                        BackTransitionEffect="FlipLeft"
                        ForwardTransitionEffect="FlipRight"
                        DefaultTransitionEffect="FlipUp">
</Intersoft:UXTabControl>

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.