Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1385
Scrollbar in MenuTool
posted

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?

Parents
  • 34810
    Verified Answer
    Offline posted

    Hello Walter,

    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.

    Sincerely,
    Andrew
    Associate Developer

    XamRibbonMenuToolScrollingCase.zip
Reply Children
No Data