I saw this question was already asked but never answered.
How can I add a tooltip to GalleryItem?
P.S. in Office it is working and if for example I stand on font option I can see the tooltip below.
Thanks.
Gilad,
Gallery Items have a Tooltip property, here is an example:
<igRibbon:GalleryItem ToolTipService.ToolTip="test" .../>
Let me know if you have any question.
Sam
var item = new GalleryItem { Key = rep.Id, Text = rep.Name,
CommandParameter = report.Id Image = new BitmapImage(new Uri(rep.LargeIcon, UriKind.RelativeOrAbsolute)), Tag = rep.Description,
};
item has no ToolTipService attribute
Here is how to set a tooltip on GalleryItem.
var item = new GalleryItem { Key = "newitem", Text = "New Item", Image = new BitmapImage(new Uri("pack://application:,,,/images/USFlag.gif")), };
// Add the item to GalleryTool ToolTipService.SetToolTip(item, "New Item");
I found I just need to replace "New Item" with a new xamRibbonScreenTip instance to achieve my goal.
Yes, this method works well, but we need ScreenTip just like Office but not normal tooltip, could you take a look at it?