The next time the cursor hovers over the command on a toolbar or ribbon panel, the text is displayed in a tooltip.
When the command is added to a toolbar or ribbon panel, the extended tooltip content is displayed if extended tooltips are enabled and the cursor hovers over the command for the designated time interval.
As an example, enter the text below in the text editor:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows"> <src:RibbonToolTip x:Key="MYEH_CMD_0003"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Center"> Configures the settings for the current drawing. </TextBlock> </StackPanel> </src:RibbonToolTip.ExpandedContent> </src:RibbonToolTip> </ResourceDictionary>
The following is an example of an extended tooltip created for use with an AutoCAD 2009-based product.
<src:ProgressivePanel x:Key="MYEH_CMD_0003"> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Center"> Configures the settings for the current drawing. </TextBlock> </StackPanel> </src:ProgressivePanel>
<src:RibbonToolTip x:Key="MYEH_CMD_0003"> <src:RibbonToolTip.ExpandedContent> <StackPanel> <TextBlock Background="AntiqueWhite" TextAlignment="Center"> Configures the settings for the current drawing. </TextBlock> </StackPanel> </src:RibbonToolTip.ExpandedContent> </src:RibbonToolTip>