Skip to content

Instantly share code, notes, and snippets.

@geobabbler
Created January 16, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geobabbler/96cb0fad99a6e5fdcee3 to your computer and use it in GitHub Desktop.
Save geobabbler/96cb0fad99a6e5fdcee3 to your computer and use it in GitHub Desktop.
Second code snippet for annotation post
private void DrawCompleteHandler(object sender, DrawEventArgs args)
{
_currentPoint = args.Geometry as MapPoint; //capture the point that where the mouse was clicked
TextSymbolPropsWindow win = new TextSymbolPropsWindow(); //My child window. This can be any you define.
win.EditMode = false; //this tells the window that this is a new annotation
win.Closed += new EventHandler(win_Closed); //subscribe to the window's Closed event
win.Show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment