码迷,mamicode.com
首页 > 其他好文 > 详细

ArcGIS Pro改变光标

时间:2020-04-11 09:52:41      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:file   win   resource   sys   stream   etc   xpl   iss   NPU   

public CustomMapTool()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Map;
//A custom cursor file as an embedded resource
var cursorEmbeddedResource = new Cursor(new MemoryStream(MapExploration.Resource1.red_cursor));
//A built in system cursor
var systemCursor = System.Windows.Input.Cursors.ArrowCD;
//Set the "CustomMapTool‘s" Cursor property to either one of the cursors defined above
Cursor = cursorEmbeddedResource;
//or
Cursor = systemCursor;
}

ArcGIS Pro改变光标

标签:file   win   resource   sys   stream   etc   xpl   iss   NPU   

原文地址:https://www.cnblogs.com/gisoracle/p/12677687.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!