0
是否可以爲Windows 10應用程序定義AutoSuggestBox的建議區域的大小?如何在Windows 10的AutoSuggestBox中定義建議區域?
是否可以爲Windows 10應用程序定義AutoSuggestBox的建議區域的大小?如何在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);
}