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
70
Cross icon when too much item on ribbon
posted

Hi,

I am using Infragistics v17.1. I have an issue with the ribbon of the UltraToolbarManager. 

There are cross icon displayed instead of tools captions when the size of the screen is not enough to display all the tools captions. I have icon on my tools, but i don't want to display them, i only want them to be displayed when the cross icons appears. 

I would like to know if there is a way to do this (event triggered when the size is not enough, property that indicate that the tool icon is displayed instead of caption, ...)

Regards.

Mario.

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello Mario,

    Unfortunately, the UltraToolbarsManager does not have a RibbonToolSize value for the PreferredSizeOnRibbon property that only displays the tool text when an image has been applied to it's Appearance. However, this behavior can be achieved using a DrawFilter that draws it's own custom image whenever it locates the UIElement for the tool's image. I have attached a simple sample that demonstrates how to achieve this desired behavior. It retrieves the image for the tool from an ImageList using the Tool's Key.

    Let me know if you have any questions.

    Chris

    Empty Ribbon2.zip
Children