Features in UWP Rotator (SfRotator)
10 May 20213 minutes to read
AutoPlay
The EnableAutoPlay
property specifies whether the items should navigate automatically based on NavigationDelay
property, when the property value is set to true.
NOTE
By default, the property value is set to false.
Rotator.EnableAutoPlay = True;
<syncfusion:SfRotator EnableAutoPlay="true"/>
Navigation Delay
The NavigationDelay
property specifies the duration to delay the switch to next navigation item, when EnableAutoPlay
property is enabled.
NOTE
The property value should be in milliseconds.
Rotator.NavigationDelay = new TimeSpan(0,0,2);
<syncfusion:SfRotator NavigationDelay="00:00:02"/>
Item Looping
The EnableLooping
property specifies whether the items should navigate to first item once it reaches the last item and vice-versa.
Rotator.EnableLooping = true;
<syncfusion:SfRotator EnableLooping="true"/>
Text Area
The ShowText
property can be used to enable the text area visibility in bottom area of rotator for providing additional information of items.
NOTE
By default, the property value is false.
Rotator.ShowText = True;
<syncfusion:SfRotator ShowText="true"/>
Navigation Direction
The NavigationDirection
property specifies the direction in which items should be navigated in Rotator control.
-
Horizontal
- Items can be navigated in horizontal direction.
Rotator.NavigationDirection = NavigationDirection.Horizontal;
<syncfusion:SfRotator NavigationDirection="Horizontal"/>
-
Vertical
- Items can be navigated in vertical direction.
Rotator.NavigationDirection = NavigationDirection.Vertical;
<syncfusion:SfRotator NavigationDirection="Vertical"/>
-
LeftToRight
- Items can be navigated from Left to Right only.
Rotator.NavigationDirection = NavigationDirection.LeftToRight;
<syncfusion:SfRotator NavigationDirection="LeftToRight"/>
-
RightToLeft
- Items can be navigated from Right to Left only.
Rotator.NavigationDirection = NavigationDirection.RightToLeft;
<syncfusion:SfRotator NavigationDirection="RightToLeft"/>
-
TopToBottom
- Items can be navigated from Top to Bottom only.
Rotator.NavigationDirection = NavigationDirection.TopToBottom;
<syncfusion:SfRotator NavigationDirection="TopToBottom"/>
-
BottomToTop
- Items can be navigated from Bottom to Top only.
Rotator.NavigationDirection = NavigationDirection.BottomToTop;
<syncfusion:SfRotator NavigationDirection="BottomToTop"/>