彩票走势图

彩票走势图 > 慧问 > 频道

silverlight radar控件能否实现点击展示的数据获取到当前数据所在列行的信息[RadarCube ASP.NET & Silverlight]

发表于2019-05-10 回复:0 查看:2212  |  
silverlight radar控件能否实现点击展示的数据获取到当前数据所在列行的信息即获取数据所有的维度信息
1个回答
  • 1970-01-01 08:00
    通过一些代码行可以指导VDF组件在OnDrawBackground事件中使用调色板的背景颜色, 比如: // the form conatins a vdFramedControl and a Button bool isOnSVGSave = false; // use this global boolean in the form and make it true just before saving the SVG and then again to false after save is finishedprivate void button1_Click(object sender, EventArgs e){ vdDocument doc = vdFramedControl.BaseControl.ActiveDocument; doc.Open(@"C:\test\simple1.vdml"); // open a test file doc.Palette.Background = Color.LightYellow; doc.Palette.Forground = Color.DarkSlateGray; .......... isOnSVGSave = true; //set this flag to true before saving SVG doc.OnDrawBackground += new vdDocument.DrawBackgroundEventHandler(doc_OnDrawBackground); // enable the event doc.SaveAs(@"c:\test\svg1.svg"); // save the SVG doc.OnDrawBackground -= new vdDocument.DrawBackgroundEventHandler(doc_OnDrawBackground); // disable the event isOnSVGSave = false;//set this flag back to false after saving SVG} void doc_OnDrawBackground(object sender, vdRender render, ref bool cancel){ if (isOnSVGSave && render!=null && render is RenderFormats.SvgRender) { cancel = true; // you need to pass this as tru render.Clear(vdFramedControl.BaseControl.ActiveDocument.Palette.Background); // clear the render and use the Palette’s Background color! }}
    1
    回复 举报
回复

登录 慧都网发表评论

扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP