silverlight bareries颜色

时间:2010-10-28 17:33:27

标签: silverlight coding-style charts

我似乎无法弄清楚如何在我的BarSeries中绑定数据点的颜色。我使用控件模板和BarDataPoint看到大量关于此的帖子。我似乎无法想象如何附加模板。

<charting:Chart Name="chtIndPerformance" Canvas.Left="464"  Canvas.Top="275" Height="363" Width="444" FontSize="10" BorderBrush="Transparent" Background="#11306A" Foreground="White" >

        <charting:BarSeries IndependentValueBinding="{Binding Path=industryTitle}" DependentValueBinding="{Binding Path=indReturn}" BorderBrush="Transparent">
            <charting:BarSeries.DataPointStyle>
                <Style>
                    <Setter Property="Background" Value="{Binding myColorProperty}" />
                </Style>
            </charting:BarSeries.DataPointStyle>
        </charting:BarSeries>
    </charting:Chart>

任何人都可以解释一下吗?

1 个答案:

答案 0 :(得分:1)

忘了,我会使用Expression Blend