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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SFCarousl Height

Thread ID:

Created:

Updated:

Platform:

Replies:

131815 Jul 28,2017 08:24 AM UTC Aug 3,2017 04:53 PM UTC Xamarin.Forms 3
loading
Tags: SfCalendar
Davide D Angelo
Asked On July 28, 2017 08:24 AM UTC

Hello,
I'm trying to implement SFCarousl in a simple xamarin forms page (xaml), in a very simple way.

I insert the following in xaml:

<syncfusion:SfCarousel x:Name="carousel" />

Then in the code behind, I populate the gallery from image repository (the source of every single image is ImageUri).

But the gallery's height is very small.

I try with: HeightRequest, ItemHeight and so on, but only internal images of the gallery change the height, not the container, that remains small.

Thanks for any help.
David

Hemalatha Marikumar [Syncfusion]
Replied On July 31, 2017 04:15 PM UTC

Hi David,

Thanks for contacting Syncfusion Support.

We were unable to reproduce the reported issue "CarouselItem 's height remains same not increased while increasing ItemHeight and HeightRequest". We have created a simple sample for achieving your requirement by increasing not only ItemHeight but also ItemWidth. Please download the sample from the following link

Link: http://www.syncfusion.com/downloads/support/forum/131815/ze/GettingStarted121608671 

Please have a look at the sample and if the issue still persist, update us the modified sample or the replication procedure to analyze further and provide the solution.

Regards,
Hemalatha M. 


Davide D Angelo
Replied On August 1, 2017 09:23 AM UTC

Hello Hemalatha,

thanks for the reply.

It seems that is impossible to set ItemHeight or ItemWidth from xaml. I use MVVM pattern for populate the datasource from a remote server.

I solved by setting the width and the heigth only after that the datasource of the carousel changed.

Regards,

Davide D.


Hemalatha Marikumar [Syncfusion]
Replied On August 3, 2017 04:53 PM UTC

Hi David,

Thanks for your update.

Query: Impossible to set ItemHeight or ItemWidth from xaml.

In general, we can set ItemHeight or ItemWidth from xaml. In our previous sample we have changed the height of Carousel item dynamically through button click to represent that the height can be increased not only by changing the ItemHeight but also the ItemWidth.

We have prepared a sample in XAML code with MVVM pattern. Please download the same from the following link

Link: http://www.syncfusion.com/downloads/support/forum/131815/ze/CarouselMVVM65489617 

Please ensure whether the above sample meets your requirement. If not please get back to us by modifying the sample based on your requirement.

Regards,
Hemalatha M. 


CONFIRMATION

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.

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

;