2010-10-28 41 views
1

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

<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

忘记吧,我会用Expression Blend