0
votes

I am using silverlight and my combobox is like this:

ComboBox cb = new ComboBox();

Suppose it already contains Items which are visible only on clicking the combobox.

I want add a vertical scrollbar(or slider) programatically when it shows its items. Is there any inbuilt property for this in silverlight or do I need to use scrollbar or slider for it?

3

3 Answers

2
votes

There is an inbuilt property of ScrollViewer.VerticalScrollbarVisibility. Set its value to Visible.

For more read this

2
votes

You can try changing the dropdownheight property.

cb.DropDownHeight = cb.ItemHeight * 5;

This is to view only 5 items at a time

0
votes

You can go to Properties:

enter image description here

And set your specified height here.