GithubHelp home page GithubHelp logo

Comments (14)

mannyvw avatar mannyvw commented on July 18, 2024 3

OK Fixed it. Name of property has changed to an _hScrollView. Easy when you know how!

    _scrollView = (HorizontalScrollView)typeof(ScrollViewRenderer)
                .GetField ("_hScrollView", BindingFlags.NonPublic | BindingFlags.Instance)
                .GetValue (this);

from xamarin-forms-carouselview.

QianPro avatar QianPro commented on July 18, 2024

same problem.

from xamarin-forms-carouselview.

mannyvw avatar mannyvw commented on July 18, 2024

Anyone find a solution to this ? Have been trying all sorts of work arounds but nothing working :-(

from xamarin-forms-carouselview.

Liam-Tait avatar Liam-Tait commented on July 18, 2024

Also having this issue

from xamarin-forms-carouselview.

QianPro avatar QianPro commented on July 18, 2024

Yes, it works now! Thanks @mannyvm!

from xamarin-forms-carouselview.

JRolandros avatar JRolandros commented on July 18, 2024

Thanks it works perfectly. Good work @mannyvw

from xamarin-forms-carouselview.

RimVo avatar RimVo commented on July 18, 2024

Works like a charm. Thank @mannyvw

from xamarin-forms-carouselview.

ppongsakorn avatar ppongsakorn commented on July 18, 2024

It work!
Thank you.

from xamarin-forms-carouselview.

repper avatar repper commented on July 18, 2024

Many many thanks, it worked like a charm... :)

from xamarin-forms-carouselview.

twentytwokhz avatar twentytwokhz commented on July 18, 2024

I am still having trouble with the CarouselLayoutRenderer.cs
At line 40 with latest code from git and latest Xamarin version the _scrollView is still null.
What can I do?

from xamarin-forms-carouselview.

darylw avatar darylw commented on July 18, 2024

It's worth pointing out here that if you are on a version of Xamarin forms lower than 2.2.0.31, then the reverse of this applies. I.e. the original post by @mannyvw which contains the field "hScrollView" is the correct line, rather than "_hScrollView". The reason I point this out is that the code has been updated to include the newer field, so this code on older versions of forms will break.

Perhaps it might be ideal to check for the existence of the original, and then use the newer one, so that it works with both? Just a thought.

Either way, great post @mannyvw - this saved me a lot of time.

from xamarin-forms-carouselview.

mannyvw avatar mannyvw commented on July 18, 2024

Thanks . As an update in a new project I started I also needed a carousel view and there is actually an official from Xamarin now, it was supposed to be included in Xamarin Forms 2.3.0, but it was removed because of stability issues ? anyway it has its own NuGet instead. have been using it on android and ios for past few months and its been fine.

https://xamarinhelp.com/carousel-view-xamarin-forms/

NuGet is Xamarin.Forms.CarouselView

thanks

from xamarin-forms-carouselview.

darylw avatar darylw commented on July 18, 2024

Cheers for that - I had been keeping an eye on that, but the one thing that was crucial to this for me for UX reasons was the page indicators. This solution contains it from the start, and they are customisable as well, so was absolutely ideal. When Xamarin implement the indicators as well, then I may well switch over to theirs. Thanks for the prompt feedback - appreciated.

from xamarin-forms-carouselview.

mannyvw avatar mannyvw commented on July 18, 2024

Yeah my original UX had the pips too , i just did them programatically in forms, although they have been removed now. bloody designers ;-)

from xamarin-forms-carouselview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.