【发布时间】:2011-02-18 14:30:10
【问题描述】:
我想在我的 WPF 工具包Chart 中覆盖LineSeries 的DataPointStyle:
<chart:LineSeries>
<chart:DataPointSeries.DataPointStyle>
<Style
BasedOn="{StaticResource {x:Type chart:LineDataPoint}}"
TargetType="{x:Type chart:LineDataPoint}">
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
</Style>
</chart:DataPointSeries.DataPointStyle>
</chart:LineSeries>
但是,当我这样做时,我失去了每个系列都有不同颜色的自动调色板着色。应用DataPointStyle 会使它们全部变为橙色。
【问题讨论】:
标签: wpf wpftoolkit