We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to disable scrolling navigation between data source

I am using with SfCarousel with custom view.
I want to navigate between views on click\swipe on buttons.

How can i do disable the scrolling and bounces?

Here my code : 

        private void SetData()
            _carousel = new SFCarousel
                Frame = new CGRect(10, DetailsLayout.Frame.Bottom + 10, View.Frame.Width - 20, View.Frame.Height - (DetailsLayout.Frame.Bottom + 10) - 10),
                UserInteractionEnabled = true,
                ViewMode = SFCarouselViewMode.SFCarouselViewModeDefault,
                Offset = 0,


            _carousel.ItemHeight = _carousel.Frame.Height;
            _carousel.ItemWidth = _carousel.Frame.Width;

            var tabs = new List<UIView>
            NSMutableArray<SFCarouselItem> carouselItemCollection = new NSMutableArray<SFCarouselItem>();

            foreach (var item in tabs)
                item.Frame = _carousel.Bounds;
                SFCarouselItem carouselItem = new SFCarouselItem();
                carouselItem.View = item;

            _carousel.DataSource = carouselItemCollection;
            _carousel.SelectedIndex = 0;

1 Reply

RB Rabhia Beham Kathar Mideenar Syncfusion Team September 20, 2017 11:44 AM UTC

Hi Roy Morag,

Thanks For Contacting Syncfusion Support.

Query:To Navigate between Views on button Click.

We have prepared the sample based on your requirement.Please have the same below,

Link: http://www.syncfusion.com/downloads/support/forum/132747/ze/TestCarousel18594419 
Your requirement(To disable the scrolling) can be achieved by using following code example.Please have the code snippet,

Code Example: 
carousel.Duration = 0;

Please have a look at the sample and if it does not meet you requirement, update us with detailed specification of your requirement to analyze further and provide an appropriate solution. 
Rabhia Beham K. 

Live Chat Icon For mobile
Up arrow icon