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

Change Padding or LineHeight HelpText/ErrorText

Thread ID:





146511 Aug 6,2019 06:19 PM UTC Aug 7,2019 08:53 AM UTC Xamarin.Forms 1
Tags: SfTextInputLayout
Laerte Alexi
Asked On August 6, 2019 06:19 PM UTC

There is any way to change Padding or LineHeight HelpText/ErrorText under Inputview?

Rachel A [Syncfusion]
Replied On August 7, 2019 08:53 AM UTC

Hi Laerte, 

Greetings from Syncfusion.
As per the material design specification, the helper and error text have to start with same left spacing below the input text of SfTextInputLayout for better UI appearance. If you still need to set margin for helper/error text, you can achieve this by adding Environment.NewLine for top margin and empty string before the actual helper/error text for left margin as like the below code snippet:  
  private void SetMargin(string errorText)  
        MarginUpdatedErrorText = Environment.NewLine + "       " + errorText;  
We have prepared a sample for your reference and it can be downloaded from the below link. 
Please let us know if your requirement is different from this. 


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