ArcGIS API for Silverlight 点击地图上的要素,d出窗口(使用Telerik RadWindow)

ArcGIS API for Silverlight 点击地图上的要素,d出窗口(使用Telerik RadWindow),第1张

概述xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

xmlns:telerikNavigation="clr-namespace:Telerik.windows.Controls;assembly=Telerik.windows.Controls.Navigation"xmlns:telerik="clr-namespace:Telerik.windows.Controls;assembly=Telerik.windows.Controls" <!-- 详情信息显示窗口--><telerikNavigation:radwindow x:name="radwindow1"  Tag="详情" borderBackground="#B4DEFE" WIDth="520"   Height="330"  LocationChanged="radwindow1_LocationChanged" windowstate="Maximized">         <telerik:RadHTMLPlaceholder x:name="moreInfo" SourceUrl="" /></telerikNavigation:radwindow>#region 处理d出窗口公共类        public voID ClickOpenDetailinfo(string name,string url)        {            TextBlock textBlock = new TextBlock();            moreInfo.Height = 541;            moreInfo.sourceUrl = new Uri(url,UriKind.relative);            string tmp = string.Empty;             tmp = name + "详细信息";            StringBuilder sb = new StringBuilder();            for (int i = 0; i < tmp.Length; i++)            {                sb.Append(tmp[i] + " ");            }            textBlock.Text = sb.ToString();            textBlock.FontSize = 16;            textBlock.FontWeight = FontWeights.Black;            SolIDcolorBrush scbrush = new SolIDcolorBrush();            scbrush.color = colors.Black;            textBlock.Foreground = scbrush;            textBlock.HorizontalAlignment = HorizontalAlignment.Center;            radwindow1.header = textBlock;            radwindow1.Show();        }        private voID radwindow1_LocationChanged(object sender,RoutedEventArgs e)        {            moreInfo.InvalIDateArrange();        }        #endregion//左键菜单graphic.MouseleftbuttonDown += new MousebuttonEventHandler(sw_graphic_MouseleftbuttonDown); graphic.MouseleftbuttonUp += new MousebuttonEventHandler(sw_graphic_MouseleftbuttonUp);voID sw_graphic_MouseleftbuttonDown(object sender,MousebuttonEventArgs e){         e.Handled = true;} voID sw_graphic_MouseleftbuttonUp(object sender,MousebuttonEventArgs e) {            Graphic g = sender as Graphic;            string url = "../ysq/page2.aspx?stype=2&ylz=" + httpUtility.UrlEncode(g.Attributes["YLZMC"].ToString());            //d出窗体            ClickOpenDetailinfo(g.Attributes["YLZMC"].ToString(),url);}


效果如下图,这个窗口能保证每次只d出一个。

总结

以上是内存溢出为你收集整理的ArcGIS API for Silverlight 点击地图上的要素d出窗口(使用Telerik RadWindow)全部内容,希望文章能够帮你解决ArcGIS API for Silverlight 点击地图上的要素,d出窗口(使用Telerik RadWindow)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1067618.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存