Why is MaxDropDownHeight limited to 350?

Sep 10, 2014 at 8:49 AM

I noticed that MaxDropDownHeight is limited to 350 in DropDownButton, limited to 100 in MenuItem and not limited at all in InRibbonGallery.

Not only does that seem a bit inconsistent, but also I believe that having a limit by default is bad because it forces the user to scroll if the dropdown gets too large, even though there could be enough space available on the screen.

So why the limit?

Sep 14, 2014 at 7:09 PM
Fixed this by using the default combobox maximum dropdown height which is "SystemParameters.PrimaryScreenHeight / 3.0".

And no, i don't know why the original developer chose those limits.
Sep 14, 2014 at 7:26 PM
Edited Sep 14, 2014 at 7:27 PM
OK, that sounds better, thanks.

However, I actually believe a limit for menus is not very reasonable, at least I have not seen other applications limit the max. menu height to such an extend. 1/3 of the primary screen is not that much, with HD resolution you're still down to 360 px. Afaik standard menus only scroll when you have no screen space left at all.
Sep 14, 2014 at 9:23 PM
Well, it's better now.
I still have to figure out why the limits are even present.