• <menu id="w2i4a"></menu>
  • 首頁 > 慧問 > 頻道

    silverlight radar控件能否實現(xiàn)點擊展示的數(shù)據(jù)獲取到當前數(shù)據(jù)所在列行的信息[RadarCube ASP.NET & Silverlight]

    發(fā)表于2019-05-10 回復(fù):0 查看:2160  |  
    silverlight radar控件能否實現(xiàn)點擊展示的數(shù)據(jù)獲取到當前數(shù)據(jù)所在列行的信息即獲取數(shù)據(jù)所有的維度信息
    1個回答
    • 1970-01-01 08:00
      通過一些代碼行可以指導(dǎo)VDF組件在OnDrawBackground事件中使用調(diào)色板的背景顏色, 比如: // 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
      回復(fù) 舉報
    回復(fù)

    登錄 慧都網(wǎng)發(fā)表評論

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();