это AutoSuggestBox
Я пытался поместить все, что хочу показать, в Всплывающее меню, а затем сделайте всплывающее окно плавающим над исходными элементами управления.
Код: Выделить всё
Код: Выделить всё
public void ShowFlyout()
{
/**
BaseGrid is the grid contains textbox
TextBoxPart is a TextBox
And the Flyout is attached to BaseGrid.
*/
BaseGrid.Children.Remove(TextBoxPart);
// move the textbox from BaseGrid to Flyout
try { FlyoutStack.Children.Insert(0, SearchBoxPart); }
catch (Exception e){ }
SearchBoxFlyout.ShowAt(BaseGrid); //show the flyout
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... -control-i