We're using the MenuTool to select from items in the user's project. The items are bound via MVVM. On occasion there are so many items that it fills the tool vertically and requires scrolling. What we're hearing is that the up and down arrows in the tool are too cumbersome and slow for scrolling through the list, and so I'm wondering if it can use a normal scrollbar and respond to mouse wheel events?
Hello Walter,
I am glad that my recommendations are working for you. Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
It is working but I had to put it in the MenuTool.Resources section (where we are retemplating ToolMenuItem), as it didn't work when set globally.
On my end, I am seeing that the drop-down for the MenuTool in the XamRibbon is responding to MouseWheel events by default, but if you would like to have a full scroll bar show up instead of the up and down arrows for the menu, I would recommend navigating to the RibbonGeneric.xaml file, commonly found at the following directory:
C:\Program Files (x86)\Infragistics\<your version here>\WPF\DefaultStyles\Ribbon
Inside of this file, you should find a Style targeting MenuToolPresenter. If you pull this into your project, you can modify this style, which represents the element that shows your menu items after opening the MenuTool's drop-down. Inside of the Template for this element, you should see a ScrollViewer named "Popup_ScrollViewer." This ScrollViewer has a Style named MenuScrollViewer. If pull in this MenuToolPresenter style and eliminate this setting locally, you will see the default scrollbars show up in the MenuTool.
I have attached a sample project to demonstrate the above. I hope this helps you.
Please let me know if you have any other questions or concerns on this matter.