Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.67 KB

File metadata and controls

17 lines (11 loc) · 1.67 KB

Demo: Geometry Editor

Required version: ArcGIS Maps SDK for .NET 200.3.0

Demonstrates using the GeometryEditor for more advanced editing capabilities, including switching out tools for different editing configurations based on the active edit tool, and utilitizing multiple editors to provide input for GeometryEngine operations, like Cut and Reshape.

Notable classes:

  • EditorToolbarController.cs - Manages the state of the different edit operations using ICommands for executing the different operations and reporting whether an operation can be executed. This class is UI agnostic and can be reused in other UI frameworks.
  • EditorToolbar.xaml - This UserControl provides the UI portion of the editor toolbar, connecting the buttons to the EditorToolbarController.
  • MyGeometryEditor.cs - A subclass of the GeometryEditor that adds a set of predefined tools for Vertex Editing, Move, Rotate, and Inactive.

Notes

For property change notifications and commands, the .NET Community MVVM Toolkit is used.

GeometryEditor.mp4