// 弹出新增的视频点的输入框
MonitorManage WinMonitorManage = new MonitorManage(objAddMonitor);
WinMonitorManage.FlwinIdentify.IsOpen = true;
// 设置显示的位置
WinMonitorManage.FlwinIdentify.InitialLeft = 100;
WinMonitorManage.FlwinIdentify.InitialTop = 130;
// 添加该弹出框
//objCurrentPage.LayoutRoot.Children.Add(WinMonitorManage);
objCurrentPage.LayoutRoot.Children.Insert(222,WinMonitorManage);
//关闭框
if (objCurrentPage.LayoutRoot.Children[222]!=null)
{
objCurrentPage.LayoutRoot.Children.RemoveAt(222);
}
MessageBox.Show("视频点添加成功!");
可以在不同的UserControl 上分别调用上述方法!
foreach (Graphic objgraphic in graphicList)
{
objgraphic.Attributes.Add("ID", "ddd");
string strid = objgraphic.Attributes["ID"].ToString();
// 地图上添加图例
//ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic()
//{
// Geometry = objgraphic.Geometry,
// Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol
//};
//MyGraphicsLayer.Graphics.Add(graphic);
objgraphic.Symbol = dd1.LayoutRoot.Resources["SelectedPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol;
//objgraphic.Selected = true;
//gralayer.Graphics.Remove(objgraphic);
gralayer.Refresh();
}