Intersoft.Client.UI.Navigation Namespace > UXTabControl Class : AutoDetectNavigationDirection Property |
<CategoryAttribute("Common Properties")> Public Property AutoDetectNavigationDirection As Boolean
Dim instance As UXTabControl 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); }
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:
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> |
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