Is there a way to set the Tooltip text for the "Minimize Ribbon" Menu item?
Everything seams working fine. Thanks a lot.
Hello,
This is good. I was searching for other tools like this, which do not have the Key property set and was not able to find such.
It seams that this condition matches all other button tools on the toolbar tabs.
It seams though that (ButtonToolUIElement)e.Element.Parent.Parent).Tool.Key for MinimizeRibbonTool is empty. So if I use the everything seams to be working:
if (e.Element is Infragistics.Win.ImageAndTextUIElement.ImageAndTextDependentTextUIElement && e.Element.Parent.Parent is ButtonToolUIElement
&& ((
ButtonToolUIElement)e.Element.Parent.Parent).Tool.Key == string.Empty)
All tools that we add will have the Key property set. The question is is there other build-in tools on the toolbar that will have Key property empty?
I am extending the condition then:
if (e.Element is Infragistics.Win.ImageAndTextUIElement.ImageAndTextDependentTextUIElement && e.Element.Parent.Parent is ButtonToolUIElement && !this.ultraToolbarsManager1.Ribbon.TabItemToolbar.Tools.Contains(((ButtonToolUIElement)e.Element.Parent.Parent).Tool))
Please do not hesitate to contact me if you need any additional assistance.
This condition is very generic, i.e. if you add another button tool next to the "Minimize Ribbon" , the condition would be met for it as well. Is there a way to identify "Minimize Ribbon" tool?