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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to disable scrolling navigation between data source

Thread ID:





132747 Sep 19,2017 10:12 AM UTC Sep 20,2017 11:44 AM UTC Xamarin.iOS 1
Tags: SfCarousel
Roy Morag
Asked On September 19, 2017 10:12 AM UTC

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;

Rabhia Beham Kathar Mideenar [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon