AutoSuggestBox working only as TextBox
Describe the bug
I have a AutoSuggestBox in my UI. It works fine on PCs that have visual studio 2022 installed. but when I move the app to a production computer, the AutoSuggestBox only works as a TextBox. I tried to replace it with a TextBox coupled with a Popup and I have the same problem. So I think there are secret Microsoft libraries or settings that is preventing 'some' winui 3 controls from working.
I've verified that the Windows App SDK Runtime versions match between the computers.
I've wasted 2.5 days working around this (and my newest solution uses a Popup, that I stupidly used).
Steps to reproduce the bug
Create UserControl Page. Add AutoSuggestBox to UI ... write some code to show a list Run on development PC ... works as expected. Run on production PC (without VS2022) ... none of the lookup code works
Create a new UserControl using a TextBox plus Popup. Place it into Page Watch it work fine in dev PC Watch it fail in prod PC
... and waste more time trying to get Winui 3 to work!
Expected behavior
No response
Screenshots
No response
NuGet package version
Windows App SDK 1.8.3: 1.8.251106002
Packaging type
Unpackaged
Windows version
Windows 11 version 24H2 (26100, June 2025 Update)
IDE
Visual Studio 2022
Additional context
Actually my windows version says 26200.
@ScottAlexanderOpto Can you put together a small project that reproduces the issue so folks can just run and debug?
it seems that you enabled Publish Trim for Release and you see different behavior in Debug and Release. try to install CsWinRT nuget package and test your app with following: (enable Publish Trim and ReadyToRun for Debug)
<PropertyGroup>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">True</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<PublishTrimmed Condition="'$(Configuration)' == 'Debug'">True</PublishTrimmed>
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
</PropertyGroup>
Sorry ... never mind. AutoSuggestBox works fine, the underlying list was empty so nothing to display