c# - WPF RibbonComboBox scroll bar / limit number of items -


i'm having problems ribboncombobox in wpf. have list lot of items want add. there many items fit window , can't see every item. wouldn't bad, problem there no scroll bar. can scroll keyboard , cursor goes missing until reach end of list , i'm on top of list. there way a) have scrollbar b) limit number of elements shown when dropdown button clicked (i know works regular combobox)?

i'm using visual studio 2010.

best wishes c

your requirements can achieved, unfortunately, painful procedure. reason why ribboncombobox not have scrollbar because whoever developed did poor job. apparently, default controltemplate uses stackpanel internally, know totally useless these kinds of sizing issues.

as more items added, stackpanel lets itemspresenter grow infinitely. can find bit of description of in ribboncombobox not display scroll bar when appropriate page on codeplex.

therefore fix declare new controltemplate based on default 1 , replace stackpanel grid, or dockpanel linked page advises (although think dockpanel might bit expensive task).

so how default controltemplate base yours upon? well, microsoft have made more difficult not providing along of there other controls in control styles , templates pages on msdn. instead, can use blend find , can task reading blend tip: finding default styles using “edit copy” page on jeff wilcox's website.

good luck.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -