다음번에 도구막대나 리본 패널의 명령 위에 커서를 놓으면 해당 문자가 툴팁에 표시됩니다.
도구막대 또는 리본 패널에 명령을 추가하고 나면, 확장된 툴팁을 사용하도록 설정되어 있고 커서가 지정 시간 동안 명령 위에 놓여 있는 경우 확장된 툴팁 컨텐츠가 표시됩니다.
예를 들어, 문자 편집기에서 아래 문자를 입력합니다.
<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>
다음은 AutoCAD 2009 기반 제품용으로 작성된 확장된 툴팁의 예입니다.
<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>