Hi,
I am trying to mimic the Microsoft Office 2007 tooltip behavior for the Application Menu footer items (hidden in Application Menu but visible in Quick Access Toolbar).
Is this possible? I tried attaching a XamRibbonScreenTip in Clone handler, but at no avail.
It seems like we should be handling this in the control so I'll see about getting this written up. For now you could just set the ToolTip on the tool in the ApplicationMenuFooterToolbar and in its ToolTipOpening do something like:
Thanks, this solved the problem for footer items. However, when I tried reusing this on application menu items (adding a comparison to ToolLocation.ApplicationMenu), it didn't work.
Its probably because the tools themselves are not displayed within the menu but are represented by menu items. I added this to the notes for the issue that was submitted. It seems that MS conditionally shows the tooltips - e.g. it does show them for tools that have a shortcut. Since the tool itself doesn't really know this condition the ultimate fix for this issue may be to add a property that determines when the tooltip is shown or allow utilization of the ToolTipService.IsEnabled.
I managed to work around this limitation by adding the following markup:
<Style TargetType="{x:Type r:ButtonTool}"> <EventSetter Event="ToolTipOpening" Handler="tool_ToolTipOpening" /> </Style>
which of course needs to be repeated for each tool type used.
I've attached a sample that uses a custom attached event that gets raised on the XamRibbon when the ToolTipOpening is being raised for something within the xamRibbon. In this way you can handle the event and decide there if you want to prevent the tooltip and you won't need to define a style per tool type.
I'm glad to see this has been addressed. It seems that in Microsoft Word 2007, ToolTips in the Application Menu are hidden only if they are identical to the Caption. Perhaps this is the intrinsic functionality the Infragistics Ribbon could implement?
However, the workaround offered is quite convoluted for a minor issue, so I'm prepared to wait until this functionality is built in to the control. Is this underway? Any idea when this will be done?
Thanks,
Jason
I'm not sure how a single attached property is convoluted as the logic is all isolated in one place. Yes there is a suggestion entered for this but I cannot say if or when this would be implemented.
This still seems quite convoluted and I did get the impression from your replies here and here that you were writing this up as a potential additional feature (not a bug fix).
To my knowledge this is not considered a bug and I'm not sure if a feature request has been logged for this but you could easily implement that behavior using the sample I provided. I'm attaching a further modification to that sample that adds an attached property and does what you are asking - suppress a tooltip where the tooltip is the same as the caption.