889 questions
Because AutoSuggestBox is sealed
, you need to implement your AutoSuggestBox based on microsoft-ui-xaml/dev/AutoSuggestBox.
According to microsoft-ui-xaml/dev/AutoSuggestBox /AutoSuggestBox_themeresources_v1.xaml, my workaround looks like:
protected override void OnApplyTemplate()
{
base.OnApplyTemplate();
popup = this.GetTemplateChild("SuggestionsPopup") as Popup;
this.GotFocus += (sender, e) => {
var s = sender as YourAutoSuggestBox;
s.popup.IsOpen = true;
};
}