Silverlight 嵌入框

 // 弹出新增的视频点的输入框
                        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();
                        }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值