2012
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- Understand User Interface Customization
- Work with the Customize User Interface (CUI) Editor
- Create and Manage Customization Files
- Customize Commands
- Customize User Interface Elements
- Customize Workspaces
- Transfer and Migrate Customization
- Customize User Interface (CUI) Editor FAQs
- DIESEL
- Slides and Command Scripts
- Migrate and Transfer Custom Settings and Files
- Index
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>
<TextBlock Background="AntiqueWhite" TextAlignment="Center">
Creates a rectangular revision cloud on the <Bold>REVISION</Bold>
layer.
</TextBlock>
<Image Source="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>
<TextBlock Background="Yellow" TextAlignment="Left">
Creates a polygonal revision cloud on the
<Run Text=" REVISION " Foreground="Red" FontStyle="Italic"/>
layer.
</TextBlock>
<Image Source="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
of the extended help topics in the file. In the previous example there are two
different extended help topics, and they are uniquely defined by the keys
MYEH_CMD_0001 and MYEH_CMD_0002.
Create Tooltips and Extended Help for Commands | 123