Home » SilverlightRSS

ComboBox Popup Direction

I have a combo box with alot of data in the items source.  Because of the amount of data when the combo box is opened the popup goes up.  But after an item is selected by an user, the next time the combobox is opened it will open down which is close to the bottom of the screen.  So, I get a little popup pointing down with a scroll bar. 

Is there any way I can force the combo box to open a certain direction, and is there a reason it opens upward initially and downward after an item is selected?


Thanks for your help.

 

2 Answers Found

 

Answer 1

beenFishen7:

I have a combo box with alot of data in the items source.  Because of the amount of data when the combo box is opened the popup goes up.  But after an item is selected by an user, the next time the combobox is opened it will open down which is close to the bottom of the screen.  So, I get a little popup pointing down with a scroll bar. 

Is there any way I can force the combo box to open a certain direction, and is there a reason it opens upward initially and downward after an item is selected?


Thanks for your help.

 

This is a combobox issue. Try to use a autocompletebox. Its work as a nice.

 

Answer 2

Hi BenFishen7

You need to set MaxDropDownHeight of combobox items. This is used to maximum height of the drop-down that lists combo box items. The default is infinity.

you can set it in constructor of your page class, but best way put it into Layout_Updated event of your class.

Ex: <ComboBox MaxDropDownHeight="double"/>
------------- Or -------------------

See the link:

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter