Coder Social home page Coder Social logo

Comments (2)

ChaseFlorell avatar ChaseFlorell commented on August 20, 2024

The reason for this is that the control is making space for the Error Text. To fix this you have to disable Error Error Text. This feature was added in #33

Take a look at ErrorDisplay

from xfx.controls.

vincentcastagna avatar vincentcastagna commented on August 20, 2024

Hello,

I'm having the same prob. I got a behavior, and I set the error text of the entry depending on a Regex. For that it is working well, and I must say that this control is very useful, thanks @ChaseFlorell !

Prob is even if I set Error Text to null, space remains. So I had in mind that I should also set Error display considering my behavior.

In the handle text changed I made something like this :

 private void HandleTextChanged(object sender, TextChangedEventArgs e)
 {
 IsValid = Regex.IsMatch(e.NewTextValue, emailRegex, RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(250));
 var entry = (XfxEntry) sender;
entry.ErrorDisplay = !IsValid ? ErrorDisplay.Underline : ErrorDisplay.None;
entry.ErrorText = !IsValid ? "Input mail is not valid" : "";
 }

But it does not to work, space for the error text remains.
I tried to set in the init of the entry the error display to none by default, and see what will happen when setting it to underline in the behavior when I set an error text but does not work too still have the space.

So is it possible not to display space error when no error text is set ? Thank you

from xfx.controls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.