SuperMap iClient for Silverlight开发系列之自定义面风格
2011-02-12 15:22
393 查看
SuperMap.Web程序集中提供了点、线、面风格,还提供了默认的风格和预定义的五种点的样式等,如果已经提供的Feature风格不能满足用户的需求,那么也可以自己进行扩展来实现,可以从Style继承,也可以从Style的子类MarkerStyle、LineStyle、FillStyle继承,实现父类的ControlTemplate。
下面就自定义一个面的风格:
效果(黑色的面就是想要的效果):
下面就自定义一个面的风格:
在C#代码中直接用就可以了: feature = new Feature(); feature.Geometry = new GeoRegion { Parts = new ObservableCollection<Point2DCollection> { new Point2DCollection() { new Point2D(0,0), new Point2D(10000000,0), new Point2D(10000000,10000000), new Point2D(0,10000000), new Point2D(0,0) }, new Point2DCollection() { new Point2D(-10000000,0), new Point2D(0,-10000000), new Point2D(-10000000,-10000000), new Point2D(-10000000,0) } } }; feature.Style = myCustomFillStyle;
效果(黑色的面就是想要的效果):
相关文章推荐
- SuperMap iClient for Silverlight API基础开发之自定义Action画双线
- SuperMap iClient for Silverlight开发笔记(不断补充中)
- SuperMap iClient for Silverlight开发准备
- Silverlight for Windows Phone 7开发系列(3):多媒体开发
- arcgis api for js共享干货系列之二自定义Navigation控件样式风格
- Silverlight for Windows Phone 7开发系列(4):动画开发
- ArcGIS Viewer for Silverlight 系列:扩展Viewer之自定义布局
- arcgis api for silverlight开发系列之一:平台搭建及第一个应该用程序
- 林永坚(Jake Lin)的Silverlight for Windows Phone 7开发系列文章 – From zero to hero
- arcgis api for js共享干货系列之二自定义Navigation控件样式风格
- 【转】Silverlight for Windows Phone 7开发系列(1):环境搭建
- Silverlight for Windows Phone 7开发系列(1):环境搭建
- supermap iclient for silverlight+iserver 6 学习总结1
- 【Visual Studio风格开发系列 - PropertyGrid控件】PropertyGrid控件中添加自定义显示方式
- arcgis api for js共享干货系列之二自定义Navigation控件样式风格
- arcgis api for silverlight开发系列之六:缓冲区分析实现及Geometry service服务发布
- Silverlight for Windows Phone开发系列课程
- SuperMap iClient for Silverlight API聚合ArcGIS server的REST服务
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(三十六)地图自定义切片与导出
- Silverlight for Windows Phone开发系列课程