How do I limit the number of items that are repeated

I am attempting to create a custom drop down with some assorted features. How can I limit the number of repeated elements displayed? Example: I want the drop down to only show a maximum of 5 rows. When I bind to a collection (elements to repeat) I get ALL the options - I want to limit the number of options displayed - and then SCROLL to see more.

I think @Joyce made a tutorial somewhere about this, I’m guessing it was with flags, I can’t find this now though, but she might have the link on the hand.

I figured it out from this post - Modal Dropdown Not Scrolling