Skip to main content
A newer version of this page is available. .

DashboardControlBase.CustomItemStyle Property

Gets or sets the style applied to the CustomItemDashboardLayoutItem. This is a dependency property.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Xpf.Dashboard.v19.1.dll

Declaration

[Browsable(false)]
public Style CustomItemStyle { get; set; }

Property Value

Type Description
Style

A Style object that is the style applied to the CustomItemDashboardLayoutItem.

Remarks

WPF Dashboard does not support custom items. When the DashboardControl loads a dashboard that contains custom items, it displays the text specified by the MessageCustomItemIsNotSupported string.

The following code snippet illustrates the initial CustomItemStyle setting:

xmlns:dxdash="clr-namespace:DevExpress.DashboardWpf"
<!-- -->
<Style 
    TargetType="{x:Type dxdash:CustomItemDashboardLayoutItem}"
    BasedOn="{StaticResource ResourceKey={x:Type dxdash:DashboardLayoutItem}}">
    <Setter Property="ContentTemplate">
        <Setter.Value>
            <DataTemplate>
                <TextBlock Text="The custom item is not supported by this control."
                                TextWrapping="Wrap" TextTrimming="CharacterEllipsis" FontWeight="Bold" 
                                VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </DataTemplate>
        </Setter.Value>
    </Setter>
</Style>
See Also