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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove animation when HasError is set to true

Thread ID:

Created:

Updated:

Platform:

Replies:

149764 Dec 8,2019 10:22 PM UTC Dec 12,2019 11:43 AM UTC Xamarin.Forms 3
loading
Tags: SfTextInputLayout
Rjuken Developments
Asked On December 8, 2019 10:22 PM UTC

Hello all,

I have some validation rules on a registration form. Each time the user types in something, the validation rule is updated and thus calls the HasError. Prob is each time the error display animation is played which result in something that feels like clipping/blinking. Is it possible to remove this behavior ? 

Thanks.  

 <inputLayout:SfTextInputLayout
            x:Name="emailLayout"
            ContainerType="Filled"
            Hint="Email"
            HasError="{Binding User.Errors.[Email], Converter={StaticResource NullToVisibilityNone}}"
            ErrorText="{Binding User.Errors.[Email]}"                        
            LeadingViewPosition="Outside">
            <Entry x:Name="emailEntry" Text="{Binding User.Email}" TextColor="White" />

            <inputLayout:SfTextInputLayout.LeadingView>
                <Label
                        TextColor="White"
                        FontSize="20"
                        FontFamily="{StaticResource MaterialFontFamily}"
                        Text="{x:Static constants:IconFont.Email}">
                </Label>
            </inputLayout:SfTextInputLayout.LeadingView>
        </inputLayout:SfTextInputLayout>


Lakshmi Radha Krishnan [Syncfusion]
Replied On December 10, 2019 02:11 PM UTC

 

Hi Rjuken,
 

Greetings from Syncfusion.

 

We would like to tell you that, the error label will animate when initially setting the value as true to the HasError property and it will not be animated until you switched the value to false. Could you please confirm us whether you are switching the HasError value between true and false?

 

Regards,

Lakshmi R.


Rjuken Developments
Replied On December 12, 2019 12:23 AM UTC

Hello,

Yes you are totally right I was raising property changed to early that was causing that ... My bad ! 

Thanks. 

Rachel A [Syncfusion]
Replied On December 12, 2019 11:43 AM UTC

Hi Rjuken, 
 
We are glad that the mentioned problem has been resolved. 
 
Regards, 
Rachel. 


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.

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