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

Remove animation when HasError is set to true

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>


3 Replies

LR Lakshmi Radha Krishnan Syncfusion Team 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.



RD Rjuken Developments 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. 


RA Rachel A Syncfusion Team December 12, 2019 11:43 AM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon