Untitled

(Steven Felgate) #1

Control the Display of Tooltips


You control the display of tooltips and when the extended help assigned to
a command is displayed from the Options dialog box. See Set Interface Options
in the User’s Guide to learn more about tooltips.


Example of an XAML File


The XAML structure is a format that was developed by Microsoft. The following
is an example of what an XAML file might look like for two custom commands
that exist in your CUIx file.


<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_0001">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlockBackground="AntiqueWhite"TextAlignment="Center">
Createsa rectangularrevisioncloudon the <Bold>REVISION</Bold>
layer.
</TextBlock>
<ImageSource="images/rectcloud.jpg"Width="Auto"Height="Auto">
</Image>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
<src:RibbonToolTip x:Key="MYEH_CMD_0002">
<src:RibbonToolTip.ExpandedContent>
<StackPanel>
<TextBlockBackground="Yellow"TextAlignment="Left">
Createsa polygonalrevision cloudon the
<RunText="REVISION" Foreground="Red"FontStyle="Italic"/>
layer.
</TextBlock>
<ImageSource="images/rectcloud.jpg"Width="Auto"Height="Auto">
</Image>
</StackPanel>
</src:RibbonToolTip.ExpandedContent>
</src:RibbonToolTip>
</ResourceDictionary>

The ResourceDictionary element is used to define the type of content that is
in the XAML file; while the scr:RibbonToolTip element is used to define each


Create Tooltips and Extended Help for Commands | 123

Free download pdf