A normal Window will show Tooltips "Minimize", "Maximize" etc. while the mouse is hovering over the title
If I use XamRibbonWindow there are no tooltips.
How do I enable the standard Tooltips?
Hello Horst,
Thank you for confirming that you are using the Office2013 theme. Using it on my end, I was also able to reproduce the behavior you are seeing.
In order to get around this, I would recommend that instead of using the ApplicationTheme property of the ThemeManager, that you bring in the ResourceDictionary files for the Office2013 theme and merge them. This way, you can modify the Buttons that are placed in the header to have tooltips. These Buttons exist within a ControlTemplate that has an x:Key of:
"{ComponentResourceKey {x:Type igRibbon:XamRibbon}, CaptionButtonAreaTemplate}"
If you place a Tooltip on them and merge the Office2013 theme with the Application.Resources of your application, you can add tooltips to the buttons.
I am attaching a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
RibbonWindowTooltips.zip
Hello Andrew,
I have further investigated this issue...
I have applied the Office213 Theme and you need to use the RibbonWindowContentHost to reproduce:
XAML:
<igRibbon:XamRibbonWindow xmlns="">schemas.microsoft.com/.../presentation" xmlns:x="">schemas.microsoft.com/.../xaml" xmlns:d="">schemas.microsoft.com/.../2008" xmlns:mc="">schemas.openxmlformats.org/.../2006" xmlns:local="clr-namespace:WpfApp13" xmlns:igRibbon="">infragistics.com/Ribbon" x:Class="WpfApp13.MainWindow" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <igRibbon:RibbonWindowContentHost> <igRibbon:XamRibbon Height="144" VerticalAlignment="Top"> <igRibbon:XamRibbon.ApplicationMenu> <igRibbon:ApplicationMenu/> </igRibbon:XamRibbon.ApplicationMenu> <igRibbon:XamRibbon.QuickAccessToolbar> <igRibbon:QuickAccessToolbar/> </igRibbon:XamRibbon.QuickAccessToolbar> </igRibbon:XamRibbon> </igRibbon:RibbonWindowContentHost></igRibbon:XamRibbonWindow>
c#:
using Infragistics.Themes;using Infragistics.Windows.Ribbon;namespace WpfApp13{ /// <summary> /// Interaktionslogik für MainWindow.xaml /// </summary> public partial class MainWindow : XamRibbonWindow { public MainWindow() { ThemeManager.ApplicationTheme = new Office2013Theme(); InitializeComponent(); } }}
I have been investigating into the behavior you are reporting and at the moment, I cannot seem to reproduce the behavior you are seeing with a vanilla XamRibbonWindow on the page. Are you potentially applying any themes or styling to your window? If so, it is possible that you will need to include some default styles relating to the XamRibbonWindow in order to apply the same tooltips. Can you please provide some additional information on this?