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

TextBox unaligned text #5386

Closed
OnlyOnePro opened this issue Jul 7, 2021 · 7 comments
Closed

TextBox unaligned text #5386

OnlyOnePro opened this issue Jul 7, 2021 · 7 comments
Labels
area-Styling area-TextBlocks TextBlock, RichTextBlock feature proposal New feature proposal help wanted Issue ideal for external contributors team-Controls Issue for the Controls team

Comments

@OnlyOnePro
Copy link

Describe the bug

The TextBox's placeholder and content text do not center-align vertically when indicated. Changing it to bottom doesn't appears to work either.

Steps to reproduce the bug

Steps to reproduce the behavior:
Create a TextBox as provided by the below snippet on a Blank Page

            <TextBox x:Name="SearchBar" 
                     HorizontalAlignment="Stretch" 
                     Grid.Row="0" 
                     Grid.Column="0" 
                     Grid.ColumnSpan="4"
                     VerticalAlignment="Stretch"
                     HorizontalContentAlignment="Left"
                     VerticalContentAlignment="Center"
                     PlaceholderText="Text that should be centered"/>

Expected behavior

The text should modify its centering relative to the control itself.

Screenshots

image

Version Info

NuGet package version:

[Microsoft.UI.Xaml 2.6.0]

Windows app type:

UWP Win32
Yes
Windows 10 version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) Yes
May 2020 Update (19041) Yes
November 2019 Update (18363) Yes
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

This is a similar issue to #3284.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jul 7, 2021
@ranjeshj
Copy link
Contributor

ranjeshj commented Jul 7, 2021

@chingucoding @StephenLPeters This looks like an issue we have looked at before. Was this never fixed ?

@ranjeshj ranjeshj added area-Styling area-TextBlocks TextBlock, RichTextBlock team-Controls Issue for the Controls team labels Jul 7, 2021
@ranjeshj ranjeshj added this to the WinUI 2.7 milestone Jul 7, 2021
@StephenLPeters
Copy link
Contributor

Duplicate of #5369

@StephenLPeters StephenLPeters marked this as a duplicate of #5369 Jul 7, 2021
@StephenLPeters StephenLPeters added help wanted Issue ideal for external contributors and removed needs-triage Issue needs to be triaged by the area owners labels Jul 7, 2021
@marcelwgn
Copy link
Contributor

The trail leads down to #3383, however I am not sure why we reverted that. @beervoley might remember more.

@StephenLPeters StephenLPeters modified the milestones: WinUI 2.7, WinUI 2.8 Sep 15, 2021
@nor0x
Copy link

nor0x commented Mar 15, 2022

any updates on this? I tried VerticalContentAlignment but it doesn't change the placeholder position
image

@kmahone kmahone removed this from the WinUI 2.8 milestone Jun 16, 2022
@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@nor0x
Copy link

nor0x commented Jul 29, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

still open!

@DmitriyKomin DmitriyKomin added the feature proposal New feature proposal label Oct 19, 2023
@DmitriyKomin
Copy link
Contributor

Duplicate of #6324

@DmitriyKomin DmitriyKomin marked this as a duplicate of #6324 Oct 19, 2023
@DmitriyKomin DmitriyKomin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Styling area-TextBlocks TextBlock, RichTextBlock feature proposal New feature proposal help wanted Issue ideal for external contributors team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

7 participants