fxhomeSoft-silverlight版地图引擎开发教程 之 底图控件制作
2010-12-23 13:48
316 查看
返回目录查看更多
=========================================================================下边的代码还没有更新上来
我先把XAP发上来 让大家看看效果吧
http://files.cnblogs.com/fxhome/fxhomeSoftMaps.xap
代码
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace fxhomeSoftMaps { public partial class baseMap_previewLine : UserControl { public baseMap_previewLine() { InitializeComponent(); } #region 附加属性 public Double X1 { get { return (Double)GetValue(X1Property); } set { SetValue(X1Property, value); } } // Using a DependencyProperty as the backing store for X1. This enables animation, styling, binding, etc... public static readonly DependencyProperty X1Property = DependencyProperty.Register("X1", typeof(Double), typeof(baseMap_previewLine), new PropertyMetadata(null)); public Double X2 { get { return (Double)GetValue(X2Property); } set { SetValue(X2Property, value); baseMap_previewArrow.Margin = new Thickness(baseMapLine.X2, baseMapLine.Y2, 0, 0); } } // Using a DependencyProperty as the backing store for X2. This enables animation, styling, binding, etc... public static readonly DependencyProperty X2Property = DependencyProperty.Register("X2", typeof(Double), typeof(baseMap_previewLine), new PropertyMetadata(null)); public Double Y1 { get { return (Double)GetValue(Y1Property); } set { SetValue(Y1Property, value); } } // Using a DependencyProperty as the backing store for Y1. This enables animation, styling, binding, etc... public static readonly DependencyProperty Y1Property = DependencyProperty.Register("Y1", typeof(Double), typeof(baseMap_previewLine), new PropertyMetadata(null)); public Double Y2 { get { return (Double)GetValue(Y2Property); } set { SetValue(Y2Property, value); baseMap_previewArrow.Margin = new Thickness(baseMapLine.X2, baseMapLine.Y2, 0, 0); } } // Using a DependencyProperty as the backing store for Y2. This enables animation, styling, binding, etc... public static readonly DependencyProperty Y2Property = DependencyProperty.Register("Y2", typeof(Double), typeof(baseMap_previewLine), new PropertyMetadata(null)); #endregion } }
=========================================================================
3、绘图预显功能
相关文章推荐
- fxhomeSoft-silverlight版地图引擎开发教程 之 人物动画控件
- fxhomeSoft-silverlight地图引擎开发教程 之 地图移动控件
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十二)制作精美的Mini地图②
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十二)制作精美的Mini地图②
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十二)制作精美的Mini地图②
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十二)制作精美的Mini地图②
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十二)制作精美的Mini地图②
- 【Silverlight】Bing Maps开发应用与技巧一:地图打点与坐标控件(CoordControl)
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十)斜度α地图的构造及算法
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十一)地图遮罩层的实现
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十一)地图遮罩层的实现
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(三十六)地图自定义切片与导出
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十四)制作主角属性面板及加点器
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十)斜度α地图的构造及算法
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十一)地图遮罩层的实现
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(十二)神奇的副本地图
- ArcGIS API for JavaScript开发教程系列(二)之地图控件
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(三十八)地图间的传送与切换
- 水经注离线影像地图读取控件的二次开发教程
- C#开发WPF/Silverlight动画及游戏系列教程(Game Tutorial):(四十一)制作精美的Mini地图①