You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a repo to test it here: https://github.com/codychaplin/UraniumUITest. The AutoCompleteTextField works correctly when using constructor dependency injection, but not when using explicit dependency resolution. My repo shows the ItemsSource for 4 different AutoCompleteTextFields getting set in different ways. All ways work except for the one I described above.
The text was updated successfully, but these errors were encountered:
Long story short, I discovered that, at least on Android, the dropdown menu doesn't show up at all while typing when the ItemsSource is bound using a viewmodel that was set via
Handler.MauiContext.Services.GetService<>()
. https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/dependency-injection.md#explicit-dependency-resolutionI made a repo to test it here: https://github.com/codychaplin/UraniumUITest. The AutoCompleteTextField works correctly when using constructor dependency injection, but not when using explicit dependency resolution. My repo shows the ItemsSource for 4 different AutoCompleteTextFields getting set in different ways. All ways work except for the one I described above.
The text was updated successfully, but these errors were encountered: