如何在SilverLight中设置系列颜色? [英] How to set series color in SilverLight?

查看:102
本文介绍了如何在SilverLight中设置系列颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有这个问题:
在我的应用程序中,它是一些图表的动画.系列的颜色从一张图表到另一张图表是不同的
例如:第一个图表中的系列是蓝色和绿色,第二个图表中的系列是红色和橙色等.
我想要系列的相同颜色.
有帮助吗?

我用C#代码而不是xaml声明该系列

Hi,

I have this problem:
In my app which is animation of some charts. The color of series is different from one chart to another
for example: in the first chart the series are blue and green, in the second chart, red and orange etc.
I want the same colors of series.
any help?

I declare the series with from c# code, not from xaml

Series series = (Series)Activator.CreateInstance(seriesTypeItem.SeriesType);

推荐答案

您可以重新设置< seriesdefinition的样式. 请参见此处 [
You can re-style <seriesdefinition.>
See here[^] for an example.


这篇关于如何在SilverLight中设置系列颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆