如何在 Windows 10 的 AutoSuggestBox 中定义建议区域?
How to define the suggestion area in a AutoSuggestBox for Windows 10?
是否可以为 Windows 10 个应用定义 AutoSuggestBox 的建议区域大小?
像这样:
var grid = VisualTreeHelper.GetChild(AutoSuggestBox, 0) as Grid;
var border = grid?.FindName("SuggestionsContainer") as Border;
if (border != null)
{
var height = border.ActualHeight;
Debug.WriteLine(height);
}
是否可以为 Windows 10 个应用定义 AutoSuggestBox 的建议区域大小?
像这样:
var grid = VisualTreeHelper.GetChild(AutoSuggestBox, 0) as Grid;
var border = grid?.FindName("SuggestionsContainer") as Border;
if (border != null)
{
var height = border.ActualHeight;
Debug.WriteLine(height);
}