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

AutoSuggestBox: PlaceholderText is not vertically centered anymore. #10317

Open
peymanr34 opened this issue Jan 26, 2025 · 2 comments
Open

AutoSuggestBox: PlaceholderText is not vertically centered anymore. #10317

peymanr34 opened this issue Jan 26, 2025 · 2 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@peymanr34
Copy link

Describe the bug

There is a regression where PlaceholderText for the AutoSuggestBox is not properly aligned anymore. I noticed this while updating Microsoft.WindowsAppSDK in a small project from 1.5.240607001 to 1.6.250108002 (latest).

Steps to reproduce the bug

  1. Create a new Black App, Packaged (WinUI 3 in Desktop) project.

At the time of writing, the latest package version for Microsoft.WindowsAppSDK would be:

<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.250108002" />
  1. Modify the MainWindow.xaml:
<Grid Margin="5">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <AutoSuggestBox
        Margin="5"
        PlaceholderText="Search for something here..."
        QueryIcon="Find" />
</Grid>
  1. You can see the PlaceholderText is not centered vertically:

PlaceholderText is not aligned as expected

But if you write something, the actual text will be aligned as expected:

But the actual Text is aligned correctly

Expected behavior

If you change the Microsoft.WindowsAppSDK package version to 1.5, for example:

<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240607001" />

You can see the PlaceholderText is aligned as expected:

PlaceholderText is aligned as expected

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

@peymanr34 peymanr34 added the bug Something isn't working label Jan 26, 2025
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 26, 2025
@manoj-sunagar
Copy link

can you please take aa loot at this @peymanr34 #10319

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants