Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.32 KB

kb-autocompletebox-show-popup-on-top.md

File metadata and controls

47 lines (40 loc) · 1.32 KB
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

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]({%slug common-visual-tree-helpers%}) method to get the Popup control.
  3. Set the Placement property of the Popup.

[C#]

{{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}}

{{ site.framework_name }} RadAutoCompleteBox Show Popup on Top