DashboardControlBase.TitleCustomizationsTemplate Property

Allows you to add, remove or modify command buttons and create drop-down menus in the dashboard title.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Xpf.Dashboard.v18.2.dll

Declaration

public DataTemplate TitleCustomizationsTemplate { get; set; }
Public Property TitleCustomizationsTemplate As DataTemplate

Property Value

Type Description
DataTemplate

A object that specifies the data template containing bar actions.

The following XAML snippet adds a drop-down button with three items to the dashboard title.

Note

The complete sample project How to add custom buttons and menu elements to dashboard item captions is available in the DevExpress Examples repository.

<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.TitleCustomizationsTemplate>
        <DataTemplate>
            <ItemsControl>
                <dxb:InsertAction ContainerName="{x:Static dxdasht:DefaultBarItemNames.DashboardTitle_Toolbar}">
                    <dxb:InsertAction.Element>
                        <dxb:BarSubItem AllowGlyphTheming="True" Content="My Title Item">
                            <dxb:BarButtonItem Content="Item1" />
                            <dxb:BarButtonItem Content="Item2" />
                            <dxb:BarButtonItem Content="Item3" />
                        </dxb:BarSubItem>
                    </dxb:InsertAction.Element>
                </dxb:InsertAction>
            </ItemsControl>
        </DataTemplate>
    </dxdash:DashboardControl.TitleCustomizationsTemplate>
    </dxdash:DashboardControl>
See Also