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.2.dll

Declaration

[Browsable(false)]
public Style CustomItemStyle { get; set; }
<Browsable(False)>
Public Property CustomItemStyle As Style

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