ArcGIS Pro二次开发改变光标的Change the cursor of a Tool
internal class CustomMapTool : MapTool { 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; }
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】AI 的力量,开发者的翅膀:欢迎使用 AI 原生开发工具 TRAE
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战