Bug 45226 - CarouselView 2.3.0-pre2 when a keyboard appears CarouselView moves to the last position
Summary: CarouselView 2.3.0-pre2 when a keyboard appears CarouselView moves to the las...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-10 10:00 UTC by spoonful79
Modified: 2017-06-19 18:13 UTC (History)
4 users (show)

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

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 spoonful79 2016-10-10 10:00:10 UTC
public CarouselView CV { get; set; }

{
            lbMenu1.Tapping += delegate { CV.Position = 0; };
            lbMenu2.Tapping += delegate { CV.Position = 1; };
            lbMenu3.Tapping += delegate { CV.Position = 2; };
            lbMenu4.Tapping += delegate { CV.Position = 3; };
            lbMenu5.Tapping += delegate { CV.Position = 4; };

            var listCarouselItem = new List<CarouselItem>();
            listCarouselItem.Add(new CarouselItem() { V = new ScrollView { Content = new ConnectView(this) } });
            listCarouselItem.Add(new CarouselItem() { V = new ScrollView { Content = new RecentConnectListView(this) } });
            listCarouselItem.Add(new CarouselItem() { V = new ScrollView { Content = new ChatListView(this) } });
            listCarouselItem.Add(new CarouselItem() { V = new ScrollView { Content = new BookmarkListView(this) } });
            listCarouselItem.Add(new CarouselItem() { V = new ScrollView { Content = new OptionView(this) } });


            CV = new CarouselView();
            CV.VerticalOptions = L.FillAndExpand;
            CV.ItemsSource = listCarouselItem;
            CV.ItemTemplate = new DataTemplate(() =>
            {
                var CV = new ContentView();
                CV.SetBinding(ContentView.ContentProperty, "V");
                return CV;
            });
            CV.PositionSelected += delegate
            {
            };
            CV.Position = App.Data.LastMenu;
}


CarouselView is very useful and
replaced Tapped Page with my custom design navigation

but has some problem..

my samsung phone (android 5.0) has no problem
but when i test with LG phone (android 5.0)
when i click Entry at first position carousel
keyboard appears and carousel moves to the last position page automatically (oops..)


and in iOS
CV.Position does not initialized before it appears

and in iOS
CV.Position = n "sometimes" doesn't work (about 10%)

thanks xamarin team
Comment 1 Chris King 2016-10-21 18:47:03 UTC
Spoonful, Could you please attach the VS solution containing your reproduction. 

Thanks,
XFT
Comment 2 spoonful79 2016-10-22 17:59:31 UTC
i sent to your email address (77MB)
thanks
Comment 3 Samantha Houts [MSFT] 2017-06-19 18:13:29 UTC
This issue is not present in the newly proposed version of CarouselView. Closing this issue. Thank you!
	
https://github.com/xamarin/Xamarin.Forms/pull/853