Represents a tool command used to perform interactive operations on a
MapView.
Custom construction tool that fires sketch events
internal class ConstructionTool1 : MapTool
{
public ConstructionTool1()
{
IsSketchTool = true;
UseSnapping = true;
// Select the type of construction tool you wish to implement.
// Make sure that the tool is correctly registered with the correct component category type in the daml
SketchType = SketchGeometryType.Line;
//Gets or sets whether the sketch is for creating a feature and should use the CurrentTemplate.
UsesCurrentTemplate = true;
// set FireSketchEvents property to true
FireSketchEvents = true;
}
// ...
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.