Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When TextBox hint hint is not set, vertical spacing changes when there are no validation errors #167

Open
Al-Dyachkov opened this issue Apr 23, 2022 · 3 comments

Comments

@Al-Dyachkov
Copy link

Same card with validation errors and with no validation errors.

image

Can be worked around with setting single space as hint when it's not required, but I'd rather had that space reserved for validation errors automatically.

  assists:TextFieldAssist.Hints=" "
@Al-Dyachkov Al-Dyachkov changed the title When hint is not set, vertical spacing changes when there are no validation errors When TextBox hint hint is not set, vertical spacing changes when there are no validation errors Apr 23, 2022
@SKProCH
Copy link
Collaborator

SKProCH commented Apr 24, 2022

Hello, @Al-Dyachkov
As far as I remember, the long error text will be divided into several lines if necessary. We can reserve the height, but you will still need more space in the case of long errors. Does this make sense?

@Al-Dyachkov
Copy link
Author

Yes, it does. I'm ok with explicitly adding space for long errors.

@appleneko2001
Copy link
Collaborator

Hi @Al-Dyachkov !

I could provide a style patch for you, just simply add this to your App.Styles section in your App.axaml

<Style Selector="TextBox /template/ TextBlock#HintsTextBlock">
    <Setter Property="TextWrapping" Value="Wrap"/>
</Style>

this patch supports only before 3.0 version, library is allow use styles to change their controls look. I might want add this thing as example to wiki

image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants