DashboardControlBase.CustomItemStyle Property
Gets or sets the style applied to the CustomItemDashboardLayoutItem. This is a dependency property.
Namespace: DevExpress.DashboardWpf
Assembly: DevExpress.Xpf.Dashboard.v24.1.dll
NuGet Package: DevExpress.Wpf.Dashboard
Declaration
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