Skip to content

Commit

Permalink
fix(AutoSuggestBox): fix the AutoSuggestBox not working when using cu…
Browse files Browse the repository at this point in the history
…stom ItemContainerStyle
  • Loading branch information
TopProgrammer77 committed Jun 13, 2023
1 parent 4d550c1 commit 1041d3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Uno.UI/UI/Xaml/Controls/AutoSuggestBox/AutoSuggestBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ internal override void OnItemsSourceSingleCollectionChanged(object sender, Notif
UpdateSuggestionList();
}

protected override DependencyObject GetContainerForItemOverride()
{
return new ListViewItem() { IsGeneratedContainer = true };
}

internal override void OnItemsSourceGroupsChanged(object sender, NotifyCollectionChangedEventArgs args)
{
base.OnItemsSourceGroupsChanged(sender, args);
Expand Down

0 comments on commit 1041d3f

Please sign in to comment.