-
Notifications
You must be signed in to change notification settings - Fork 706
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
Textbox VerticalContentAlignment is not working properly. (WINUI_DeskTop) #6324
Comments
|
Hi @kmgallahan , Thank you for your reply. Is there any possibility align the text content vertically in winui textbox? Regards, |
I'm not certain I understand what "vertical alignment" means here. Does that mean
|
Hi @MikeHillberg , Thanks for your comment. And we just need to know is there any possibility align the TextContent Vertically ie. We just need to align the below TextBox Text to bottom or center. Currently the Text is aligned look like Top. We have tried to use the VerticalContentAlignment but it does not working. XAML:
Please share your suggestion to align the TextBox Text to bottom or Center. |
I have got the same problem and did not find a solution. Will update if I find something |
For a single-line text box, the vertical alignment does appear to be centred. If you add certain characters, for example, lowercase letters like It would be nice if there was an additional property on a text box to specify the type of content. If you only want to add numbers the alignment will always appear to be off a bit. |
Just wanted to add that I encountered this exact issue, and if anyone finds a solution I would greatly appreciate it. |
This is more of a workaround but playing around with the margins, padding and can improve the layout a bit.
You will need to play with the values yourself to get the best results. |
@MikeHillberg I believe the expected alignment is more clear here: #9528 (comment) - i.e. |
Describe the bug
Textbox VerticalContentAlignment is not working properly.
Steps to reproduce the bug
Observed behavior:
You can see the textbox text is not vertically aligned.
Please refer the code snippets from below:
Expected behavior
The textbox text is should be vertically aligned.
Screenshots
TextBox.VerticalContentAlignment.issue.mp4
NuGet package version
No response
Windows app type
Device form factor
Desktop
Windows version
October 2020 Update (19042)
Additional context
Please see the system information from the below screenshots:
![1](https://user-images.githubusercontent.com/89458634/142022849-1e554688-2b37-4270-9026-985460aa4d68.png)
The text was updated successfully, but these errors were encountered: