2015-08-20 67 views

回答

1

像這樣:

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); 
      } 
相關問題