void iMSMap1_MapReady(ZDIMS.Event.IMSMapEvent e) { initData(); //初始化统计数据序列 initParam(); //初始化统计点数据 //实例化统计图控件,并设置其样式 myChartCtrl1 = new myChartCtrl(); myChartCtrl1.HorizontalAlignment = HorizontalAlignment.Right; myChartCtrl1.VerticalAlignment = VerticalAlignment.Top; myChartCtrl1.SetValue(MarginProperty, new Thickness(0, 200, 50, 0)); myChartCtrl1.Show(); }