5 Jun 2020 / 1 minute to read
The Offset between selected and unselected item can be customized in SfCarousel control. And also the items can be scaled to the specified value.
Tilt Non Selected Items
RotationAngle property in the SfCarousel control is used to tilt all the unselected items in a specified angle.
If the angle value is positive, then the rotation is in the clockwise direction. If the angle value is negative, the rotation is in the counterclockwise direction.
SfCarousel carousel = new SfCarousel(); carousel.RotationAngle = 40;
Set Gap between Unselected Items
Offset property is used to specify the accurate distance between unselected items in SfCarousel panel.
The default value is 20.
SfCarousel carousel = new SfCarousel(); carousel.Offset = 30;
Set Gap between Selected Item
Distance between the selected item and other items can be customized by using
SelectedItemOffset property of the SfCarousel control.
SfCarousel carousel = new SfCarousel(); carousel.SelectedItemOffset = 6;
Set Scaling for Carousel Items
ScaleOffset property in the SfCarousel control is used to scale all the items to the specified scale value.
SfCarousel carousel = new SfCarousel(); carousel.ScaleOffset = (nfloat)0.7;
Spacing of Items in Linear mode
Spacing of all the items in Linear mode can be determined by using
The default value is 5.
SfCarousel carousel = new SfCarousel(); carousel.ViewMode = SFCarouselViewMode.SFCarouselViewModeLinear; carousel.ItemSpacing = 10;