摘要:
六、Feature LayerFeature Layer是一种特殊的Graphics layer(继承自Graphics layer),除了像Graphics layer一样包含和显示Graphic features,还能提供:Editing——编辑(editing控件包含在ArcGIS Toolkit库中,通过feature service来编辑feature layer)Definition expressions——通过where子句,条件显示某些feature Time definitions——通过time-aware layer的时间定义,条件显示某些feature Selecti 阅读全文
posted @ 2013-09-06 18:05
长白山
阅读(385)
评论(0)
推荐(0)
摘要:
五、Graphics layer1、新增Graphics layerGraphics layer用于显示用户自定义绘制的点、线、面图形。使用时确保xaml文件中Graphics layer定义在其它图层的下面,以确保它能显示在其它图层的上面。 2、管理Graphics features在Graphics layer上创建Graphics的步骤一般如下:(1)获取Graphics layer(2)创建或获取Graphic(3)设置Graphic的Geometry(4)应用Graphic的Symbol(5)将Graphic添加到Graphics layers代码如下:GraphicsLay... 阅读全文
posted @ 2013-09-06 18:04
长白山
阅读(392)
评论(0)
推荐(0)
摘要:
源自:http://blog.163.com/zwx_gis/blog/static/32434435201122193611576/(主页:http://blog.163.com/zwx_gis/)一、安装1、Visual Studio: (1)Visual Studio 2010或Visual Web Developer Express 2010 (2)Silverlight 4 Tools for Visual Studio (add-on) :仅Silverlight 4支持(3)Expression Blend 4 SDK for Silverlight (also included 阅读全文
posted @ 2013-09-06 18:02
长白山
阅读(736)
评论(0)
推荐(0)
摘要:
我们知道,在WPF界面上添加WinForm的控件需要使用WindowsFormHost类。而在WinForm界面上添加WPF控件该如何做呢?有没有类似的类呢?明显是有的,ElementHost就是为了在WinForm应用程序中嵌入WPF元素而定义的。它继承自System.Windows.Forms.Control,是一个WinForm控件,但它知道如何显示WPF内容。接下来演示如何使用ElementHost来显示一个WPF控件——Button,并与WinForm中Button的显示作个简单的对比(xp环境)。1. 创建一个标准的WinForm工程,从工具栏中找到“WPF Interoperab 阅读全文
posted @ 2013-09-06 12:51
长白山
阅读(914)
评论(0)
推荐(1)
摘要:
首先,需要向项目中的reference添加两个dll,一个是.NET库中的System.Windows.Forms,另外一个是WindowsFormsIntegration,它的位置一般是在C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF 里。添加完两个dll以后,就可以在控件库中找到WindowsFormsHost这个控件了。这个控件是我们添加Windows Form控件的基础。跟别的其他的控件一样,它也是可控的,可以自定义它在窗口中的位置、控件大小颜色等属性。我一般是比较喜欢在Blend里面创建控件。可以在Blend中的Assets中找到这 阅读全文
posted @ 2013-09-06 11:09
长白山
阅读(1809)
评论(0)
推荐(0)
浙公网安备 33010602011771号