Bug 40511 - CarouselView needs DoesAnimate property Forms V2.2.0-Pre2
Summary: CarouselView needs DoesAnimate property Forms V2.2.0-Pre2
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.2.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2016-04-19 09:13 UTC by FieldstrikeMobile
Modified: 2017-05-05 17:37 UTC (History)
6 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
Reo Case (321.44 KB, application/zip)
2016-04-19 09:13 UTC, FieldstrikeMobile
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description FieldstrikeMobile 2016-04-19 09:13:17 UTC
Created attachment 15762 [details]
Reo Case

I have attached a small sample.
This sample contains a carouselView 1000 views and starts on view 500.

It has a button at the top which when clicked changes the position to 0

and clicked again changes it back to 500.

The carouselView animates the changing of the position and takes a good couple of minutes to change from 500 to 0

I think carouselView needs a doesanimate property that can be bound to which determins whether the view animates to the position (when changed) or goes directly to that position.

I have only currently tested this on Android. Not sure if this is the same for all OS's but i presume so.
Comment 1 thomas 2016-07-01 12:44:16 UTC
I can confirm this. There is a workaround after looking at the sources I found if you set Itemsource=null while setting the position it works.

Like

      var itemsource = DayCarousel.ItemsSource;
        DayCarousel.ItemsSource = null;
        DayCarousel.Position = i;
        DayCarousel.ItemsSource = itemsource;

At least on Android this works
Comment 2 thomas 2016-07-01 12:44:48 UTC
But I also agree that this need to be choosen by a Property
Comment 3 adrianknight89 2016-07-01 15:42:05 UTC
I need this functionality as well.
Comment 4 Chris King 2017-05-05 17:37:41 UTC
CarouselView to be deprecated and replaced with https://github.com/xamarin/Xamarin.Forms/pull/853