title | description | type | page_title | slug | position | tags | ticketid | res_type |
---|---|---|---|---|---|---|---|---|
Show Popup on Top of RadAutoCompleteBox |
Display auto suggestion list above the RadAutoCompleteBox control. |
how-to |
Align the search results dropdown of RadAutoCompleteBox at Top |
kb-autocompletebox-show-popup-on-top |
0 |
autocomplete,placement,popup |
1409391 |
kb |
Product Version | 2018.2.515 |
Product | RadAutoCompleteBox for WPF |
How to align the popup with the search results of RadAutoCompleteBox to the Top of the control.
- Subscribe to the Loaded event of RadAutoCompleteBox.
- Use the [FindChildByType]({%slug common-visual-tree-helpers%}) method to get the Popup control.
- Set the Placement property of the Popup.
{{region kb-autocompletebox-show-popup-on-top-0}} private void RadAutoCompleteBox_Loaded(object sender, RoutedEventArgs e) { var autoCompleteBox = (RadAutoCompleteBox)sender; var popup = autoCompleteBox.FindChildByType(); popup.Placement = System.Windows.Controls.Primitives.PlacementMode.Top; } {{endregion}}