New to Telerik UI for WPF? Download free 30-day trial

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; 
} 
WPF RadAutoCompleteBox Show Popup on Top
In this article