您的位置:首页 > 其它

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、绘图预显功能


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐