AutoSuggestBox menu is zero-height
See original GitHub issueDescribe the bug
The suggestion menu of a WinUI AutoSuggestBox appears to be near zero height, even when list of suggestions is not empty.
Steps to reproduce the bug
- Install and open XAML Studio.
- Copy the following XAML into the editor:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Padding="40">
<AutoSuggestBox>
<x:String>Howdy</x:String>
<x:String>Suggestion</x:String>
<x:String>Another suggestion</x:String>
</AutoSuggestBox>
</Grid>
</Page>
- Type some text into the box. Observe that a tiny sliver of the suggestions menu appears.
Expected behavior
The suggestions menu should show the current suggestions (AutoSuggestBox.Items).
Screenshots

NuGet package version
Microsoft.UI.Xaml 2.7.0
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
Windows 10 (20H2): Build 19042
Additional context
XAML Studio still uses WinUI 2.3, but I initially ran into this issue with an Uno UWP app using WinUI 2.7 and was able to repro with WinUI 2.8.0-prerelease.220118001.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
zeroheight - zeroheight
zeroheight creates a central hub for designers, engineers, product and marketing teams. Connect everyone with your design system.
Read more >AutoSuggestBox Class (Windows.UI.Xaml.Controls)
Represents a text control that makes suggestions to users as they enter text using a keyboard or pen (using ink and handwriting recognition)....
Read more >Best Zeroheight Alternatives & Competitors
Compare the best Zeroheight alternatives in 2023. Explore user reviews, ratings, and pricing of alternatives and competitors to Zeroheight.
Read more >Responsive Web | PDF | Windows 10 | Mobile App
Press the Windows key to open the Start menu, then show all apps. ... Predictive text entry Auto-suggest box Saves users time when...
Read more >Zeroheight and Figma
Insert any Figma Styles and Components into your Styleguides in zeroheight. Go to the styleguides tab in zeroheight: Select the Styleguide from the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is what I found as well. This is unrelated to Binding/x:Bind, setting
ItemsSourceworks butItemsdoesn’t. @ojhad here’s a repro in a VS project, where the project’s markup usesItemswhich doesn’t work, but clicking the Button setsItemsSourcein code-behind which then works: AutoSuggestBoxRepro.zip . Note that Binding/x:Bind is never used.@ojhad I’m targeting v2004 / b19041.