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.

sfrotator padding

Thread ID:

Created:

Updated:

Platform:

Replies:

131490 Jul 12,2017 10:02 AM Jul 14,2017 09:08 AM Xamarin.Forms 3
loading
Tags: SfRotator
Gyori Balazs
Asked On July 12, 2017 10:17 AM

Hi,I put an sfrotator into a stacklayout. I added two pictures into it. It works fine. I have only problem how it looks like. There seems to be a padding for the sfrotator, because my pictures does not fill the sfrotator. I added an aqua background color for the sfrotator as you can see on the attached picture. So it seems to be fine, occupying the full width of the screen and also the 200 height what I set. But the ItemContent inside what is a picture does no fill the available space in sfrotator.The xaml snippet of the page: rotator:SfRotator x:Name="rotator" HeightRequest="200" HorizontalOptions="FillAndExpand" BackgroundColor="Aqua"The code for adding the items in my cs:List collectionOfItems = new List(); collectionOfItems.Add(new SfRotatorItem() { ItemContent = new Image() {Source = "Assets/pin_details_offline_bgr.jpg", Aspect = Aspect.AspectFill, HorizontalOptions = LayoutOptions.FillAndExpand } });collectionOfItems.Add(new SfRotatorItem() { ItemContent = new Image() { Source = "http://www.badacsony.com/images/abrahamhegy-image.jpg" , Aspect = Aspect.AspectFill } });           rotator.DataSource = collectionOfItems;How can I hide this padding from sfrotator?Picture:https://drive.google.com/open?id=0By2pZ2n1CiqmOXA0c29QM3VnOEEThis problem is only on UWP.On my android phone it is OK.

Rathana Kumar Sekar [Syncfusion]
Replied On July 13, 2017 08:11 AM

Hi Gyori Balazs,

Thanks for contacting Syncfusion Support.

We have checked the reported issue "Issue with SfRotator padding in UWP" from our side and in our current implementation default margin value 5 has been setted to native UWP SfRotator. Now we have modified the sample and set the native UWP SfRotator margin size as zero in UWP project MainPage XAML to solve the reported issue. Please find the sample from the below link.

Sample: http://www.syncfusion.com/downloads/support/forum/131490/ze/RotatorTesting757674900 

Please let us know if you have any other query.

Regards,
Rathanakumar S. 


Gyori Balazs
Replied On July 13, 2017 09:22 AM

Hello!

Thanks for the quick response! I tried it and now it shows without margin! Thank you very much!

Since yesterday I also realized that NavigationDelay has no effect on android. It works on uwp, but on android it always remains 2 sec.

I set NavigationDelay="5000" in MainPage.xaml. This is what I added to rotator:

EnableSwiping="true" NavigationDelay="5000" EnableAutoPlay="True" EnableLooping="True"

I tested it with your RotatorTesting project. Can you check if this is bug or I make a mistake?

Regards,

Balázs


Rathana Kumar Sekar [Syncfusion]
Replied On July 14, 2017 09:08 AM

Hi Gyori Balazs,

Thanks for your update.

We could reproduce the reported issue "Issue with SfRotator Navigation delay in Android" from our side. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/

Regards,
Rathanakumar S. 


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.

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.

;