您的位置:首页 > 其它

silverlight 生成图标的基本使用方式

2008-09-10 09:15 393 查看
using Visifire.Charts;
using Visifire.Commons;

namespace SilverlightApplication2
{
public partial class Page : UserControl
{

public Page()
{
InitializeComponent();
Chart ct = new Chart();

ct.Width = 400;
ct.Height = 400;
ct.View3D = true;
ct.Watermark = false;
DataSeries ds = new DataSeries();
int num = 6;
Random rd = new Random();
for (int loop = 0; loop < num; loop++)
{
DataPoint dp = new DataPoint();
dp.YValue = rd.Next(33, 600);
//dp.XValue = rd.Next(0, 33);
ds.Children.Add(dp);
}
ct.Children.Add(ds);
LayoutRoot.Children.Add(ct);
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐