Version

About Styling

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

PaneTabItem

PaneTabItem

PaneTabItem

xamdockmanager panetabitem styling points

PaneHeaderPresenter Class

Property Name Target Type

Button

Button

MenuItem

xamdockmanager's paneheaderpresenter styling points

PaneSplitter Class

Property Name Target Type

Control

xamdockmanager's panesplitter styling points

XamDockManager Class

Property Name Target Type

Control

Separator

MenuItem

ToolTip

Note
Note

The DropPreview control is not part of xamDockManager’s visual tree; therefore, you must add the style to xamDockManager’s local resource dictionary.

xamdockmanager's styling points
xamdockmanager's styling points
xamdockmanager's styling points