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. Image for the cookie policy date

sfrotator padding

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.

3 Replies

RK Rathana Kumar Sekar Syncfusion Team July 13, 2017 12:11 PM UTC

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. 



GB Gyori Balazs July 13, 2017 01:22 PM UTC

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



RK Rathana Kumar Sekar Syncfusion Team July 14, 2017 01:08 PM UTC

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. 


Loader.
Live Chat Icon For mobile
Up arrow icon