Show Popup on Top of RadAutoCompleteBox

Environment

Product Version 2018.2.515
Product RadAutoCompleteBox for WPF

Description

How to align the popup with the search results of RadAutoCompleteBox to the Top of the control.

Solution

  1. Subscribe to the Loaded event of RadAutoCompleteBox.
  2. Use the FindChildByType method to get the Popup control.
  3. Set the Placement property of the Popup.

private void RadAutoCompleteBox_Loaded(object sender, RoutedEventArgs e) 
{ 
    var autoCompleteBox = (RadAutoCompleteBox)sender; 
    var popup = autoCompleteBox.FindChildByType<Popup>(); 
    popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Top; 
} 
In this article
Not finding the help you need? Improve this article