This topic explains the specific properties of RadSlideView.
The ItemTemplate property defines the visual representation of each data item.
The ItemRealizationMode property determines how data items are realized into visual containers.
The Default mode will have the Viewport (Pivot) item as well as the two adjacent items realized simultaneously.
The ViewportItem mode will realize the Pivot item only. The two adjacent items will use as a template the
value that comes from the ItemPreviewTemplate property.
In this special mode each item will also display a RadBusyIndicator instance when the item is about to become the currently selected (Viewport) one.
This busy indicator will run until the item is prepared for rendering.
Once ready to be visualized, the newly realized item will be animated into view using the corresponding LoadAnimation
of each item.
Here is a snapshot of the OnDemand example, available in the Demo application comming with the installation package:
The ItemPreviewTemplate property defines the appearance of the two adjacent items
when ItemRealizationMode is set to ViewportItem.
This allows the two off-screen items to use light-weight templates to boost the overall loading time of the control.
The AdjacentItemsPreviewMode property determines the visibility of the two adjacent to the viewport items.
Defaults to AdjacentItemsPreviewMode.None, meaning that neither the previous nor the next items will be partially visible.
Here is how setting this property to AdjacentItemsPreviewMode.Both affects the control:
The IsLoopingEnabled property determines whether the user can loop among the items infinitely.
That is, when the last item is reached, the next item to follow is the first item and vice-versa in the opposite direction.
The Orientation property determines how items are laid-out and how input gestures are handled.
A transition is actually the animation effect used when the control advances to the next or the previous item in the sequence.
Two built-in transitions are available: Slide - the default one,
and Flip - simulates book-like browsing epxerience.
You can programmatically change the selected item in RadSlideView. One way is to call one of these methods: MoveToNextItem() or MoveToPreviousItem(). This will change the selection to one of the adjacent items of the currently selected item. The other way is to directly set the selected item to the desired item through the SelectedItem property. Please note that RadSlideView uses comparison in order to actually select the correct item. In order to assure that the comparison will be performed correctly, you may need to override the methods Equals and GetHashCode for the data type that you use for your items collection.