DashboardLayoutGroup.CaptionCustomizationsTemplate Property
Allows you to specify a custom caption template for the DashboardItemGroup item.
Namespace: DevExpress.DashboardWpf
Assembly: DevExpress.Xpf.Dashboard.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
DataTemplate | A DataTemplate object that specifies the data template used to render the dashboard group item caption. |
Remarks
The following XAML snippet adds a check button to the dashboard group caption.
<Window
xmlns:dxdash="http://schemas.devexpress.com/winfx/2008/xaml/dashboard"
xmlns:dxdasht="http://schemas.devexpress.com/winfx/2008/xaml/dashboard/themekeys"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
<dxdash:DashboardControl>
<!-- -->
<dxdash:DashboardControl.ItemGroupStyle>
<Style TargetType="{x:Type dxdash:DashboardLayoutGroup}">
<Setter Property="CaptionCustomizationsTemplate">
<Setter.Value>
<DataTemplate>
<ItemsControl>
<dxb:InsertAction ContainerName="{x:Static dxdasht:DefaultBarItemNames.DashboardItemCaption_Toolbar}">
<dxb:InsertAction.Element>
<dxb:BarCheckItem AllowGlyphTheming="True" Content="My Check Button" />
</dxb:InsertAction.Element>
</dxb:InsertAction>
</ItemsControl>
</DataTemplate>
</Setter.Value>
</Setter>
</dxdash:DashboardControl.ItemGroupStyle>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CaptionCustomizationsTemplate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.