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

SfButton horizontal alignment

Thread ID:





146366 Aug 1,2019 02:26 PM UTC Jan 25,2021 07:29 AM UTC Xamarin.Forms 8
Tags: SfButton
Igor Mitrofanov
Asked On August 1, 2019 02:26 PM UTC

When I try to place any SfButton element in the Grid and set the HorizontalOptions property to Start, Center or End, the button still remains stretched to the full width of the parent. This happens with a button with an icon, with text, even with an empty button.

Source code:

            <button:SfButton ImageSource="left_arrow"
                             Clicked="NavigateBack" />

            <Label Text="Settings"
                   FontSize="Large" />

Attachment: Аннотация_20190801_192205_bfa415ea.zip

Rachel A [Syncfusion]
Replied On August 2, 2019 01:29 PM UTC

Hi Igor, 
Thanks for contacting Syncfusion Support. 
We have updated the fix in the incident you have created. We request to follow up that incident for further updates.  

Radoslaw Kubas
Replied On August 21, 2020 10:48 AM UTC

Any update on this subject, or maybe the problem appears again? I have same problem with leftest SF version.

Best regards,

Hemalatha Marikumar [Syncfusion]
Replied On August 24, 2020 12:00 PM UTC

Hi Radek, 
Thanks for being back. We need to ensure more testing case related with fix which is already provided in your support incident ticket in previously. Since it mainly related with its measured size, hence need to ensure the same with available layout options and layout, makes this delay. We have mostly done the first phase of our testing; hence we have planned to move this bug fix in our Volume 3, 2020 release which is expected to be rolled out by end of September 2020. 
Hemalatha M. 

Saravanan Madheswaran [Syncfusion]
Replied On October 6, 2020 03:23 PM UTC

Hi Radek 
We deeply regret for this convenience.   
Due to getting the breaking on the existing test cases at last time, we were unable to move this into Volume 3, 2020 release. Hence, we are working on that with high priority and we have planned to move this on October 13,2020 rolled out Weekly NuGet release.  

Yuvaraj Palanisamy [Syncfusion]
Replied On October 14, 2020 07:38 AM UTC

Hi Radek, 
Sorry for the inconvenience caused. 
Due to some technical hurdles, we were unable to include this fix in our weekly NuGet. Currently we are working on resolving those. Hence, we will include this fix for the reported issue in our weekly NuGet which is expected to be rolled out on October 20, 2020. 

Hemalatha Marikumar [Syncfusion]
Replied On October 22, 2020 03:13 PM UTC

Hi Radek, 
Thanks for your patience.  
We have created a new incident under your Direct trac account to follow up with this query. We suggest you follow up with the incident for further updates. Please log in using the below link.    

Hemalatha M. 

Replied On January 22, 2021 10:37 PM UTC

Given that this is still unresolved after more than a year, I'll recommend a temporary hack for others still waiting. Place the button inside a Xamarin.Forms.Grid. 

     <buttons:SfButton HorizontalOptions="Center" Text="Submit" />

Hemalatha Marikumar [Syncfusion]
Replied On January 25, 2021 07:29 AM UTC

Hi Adam, 
We have checked the provided code snippet and ensured with our latest Syncfusion.Xamarin.Buttons version and  Xamarin version of and it has been worked fine like framework button control. 
        <buttons:SfButton HorizontalOptions="Center" Text="Submit"/> 
        <Button HorizontalOptions="Center" Text="Submit"/> 

Tested sample for your reference:  
Share your used XF version and Syncfusion.Xamarin.Buttons version to test our end and provide a possible solution. 
Hemalatha M. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon