ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTool Class / SketchTipEmbeddableControl Property
Example Version

SketchTipEmbeddableControl Property
Gets the Embeddable Control for the sketch tip for this tool. This is the control set by the SketchTipID property.
Syntax
protected EmbeddableControl SketchTipEmbeddableControl {get;}
Remarks
In some cases you may need to provide a control that displays on top of the map view when the tool is active and provides some type of tool tip similar to the constraint tips that appear when sketching. This property returns the instance of the overlay EmbeddableControl set by the SketchTipID property. When you activate a different tool the control will be removed.
Example
Set a custom UI Sketch Tip
// 1. Add an embeddable control using VS template.  This is the daml entry

//<categories>
//  <updateCategory refID = "esri_embeddableControls">
//    <insertComponent id="SketchTip_EmbeddableControl1" className="EmbeddableControl1ViewModel">
//      <content className = "EmbeddableControl1View"/>
//    </insertComponent>
//  </updateCategory>
// </categories>

// 2. Define UI controls on the EmbeddableControl1View
// 3. Define properties on the EmbeddableControl1ViewModel which
//    bind to the UI controls on the EmbeddableControl1View

public class SketchToolWithUISketchTip : MapTool
{
  public SketchToolWithUISketchTip()
  {
    IsSketchTool = true;
    SketchType = SketchGeometryType.Line;
    SketchOutputMode = SketchOutputMode.Map;
    SketchTipID = "SketchTip_EmbeddableControl1";
  }


  protected override Task<bool> OnSketchModifiedAsync()
  {
    var sketchTipVM = SketchTipEmbeddableControl as EmbeddableControl1ViewModel;
    if (sketchTipVM != null)
    {
      // modify properties on the sketchTipVM
      QueuedTask.Run(async () =>
      {
        var sketch = await GetCurrentSketchAsync();
        var line = sketch as Polyline;
        var count = line.PointCount;

        sketchTipVM.Text = "Vertex Count " + count.ToString();
      });


    }

    return base.OnSketchModifiedAsync();
  }

}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also