Infragistics(R) NetAdvantage(R) for WPF
About Styling


Glossary Item Box

You can restyle xamDockManager™ using Styles and ControlTemplates just like any control in Microsoft® Windows® Presentation Foundation. However, the various classes that make up xamDockManager make styling easier by exposing a static property that you can use as the Key property of a Style or ControlTemplate. If the xamDockManager finds a Style or ControlTemplate that is using a predefined key, the xamDockManager control will automatically use the Style or ControlTemplate you created.

The tables below list the static properties that you can use as keys when creating your Styles and ControlTemplates. The heading for each section is the class that exposes the property. If the property name ends with "TemplateKey", you have to create a ControlTemplate to style that element. If the property name ends with "StyleKey", you have to create a Style to style that element. For example, if you want to style the tab headers of content panes in the DocumentContentHost object, you will first find the class and property name using the tables below. Once you find the property, create a ControlTemplate or a Style based on the name of the property. Set the Key property of the ControlTemplate or Style to the property using a markup extension.

In XAML:


<!--
Create a control template since the property name ends with "TemplateKey".
Set the Key property of the control template to the static property exposed by the PaneTabItem class.
Set the TargetType property of the control template to PaneTabItem.
-->
<ControlTemplate 
    x:Key="{x:Static igDock:PaneTabItem.DocumentTabItemTemplateKey}" 
    TargetType="{x:Type igDock:PaneTabItem}">

    <!--
    TODO: Create your template here and xamDockManager will automatically use this ControlTemplate for tab headers in the DocumentContentHost object.
    -->
</ControlTemplate>

PaneTabItem Class

Property Name Target Type
DocumentTabItemTemplateKey PaneTabItem
DockableTabItemTemplateKey PaneTabItem
UnpinnedTabItemTemplateKey PaneTabItem

TabGroupPane Class

Property Name Target Type
DocumentTabGroupTemplateKey TabGroupPane
DockableTabGroupTemplateKey TabGroupPane
DocumentPaneNavigatorButtonStyleKey Button
DocumentCloseButtonStyleKey Button
DocumentFilesMenuItemStyleKey MenuItem

PaneHeaderPresenter Class

Property Name Target Type
CloseButtonStyleKey Button
PinButtonStyleKey Button
PositionMenuItemStyleKey MenuItem

PaneSplitter Class

Property Name Target Type
PreviewStyleKey Control

XamDockManager Class

Property Name Target Type
DropPreviewStyleKey Control
MenuItemSeparatorStyleKey Separator
MenuItemStyleKey MenuItem
ToolTipStyleKey ToolTip
Note: The DropPreview control is not part of xamDockManager's visual tree; therefore, you must add the style to xamDockManager's local resource dictionary.
Related Topics

Styling the Docking Indicators

Using xamDockManager