<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Programmatically fire DrawComplete Event in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73157#M1781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When drawing a line I want to fire the DrawComplete event after the user clicks a second point, essentially overriding the double-click to end drawing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is VB - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is my understanding that you can finr the event just by doing this: GraphicDrawObject_DrawComplete(Nothing, arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the issue is I can't set the geometry of the DrawEventArgs - I get something like this: set accessor of property is not accessible&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation say that is is a setable property - below is the code I am tryinh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pl As ESRI.ArcGIS.Client.Geometry.Polyline = New ESRI.ArcGIS.Client.Geometry.Polyline()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pl.SpatialReference = MainMap.SpatialReference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pl.Paths.Add(ptsCurrent)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim arg As ESRI.ArcGIS.Client.DrawEventArgs = New ESRI.ArcGIS.Client.DrawEventArgs()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arg.Geometry = pl (this line error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GraphicDrawObject_DrawComplete(Nothing, arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 13:01:56 GMT</pubDate>
    <dc:creator>RobertMEIER</dc:creator>
    <dc:date>2012-06-15T13:01:56Z</dc:date>
    <item>
      <title>Programmatically fire DrawComplete Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73157#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When drawing a line I want to fire the DrawComplete event after the user clicks a second point, essentially overriding the double-click to end drawing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is VB - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is my understanding that you can finr the event just by doing this: GraphicDrawObject_DrawComplete(Nothing, arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the issue is I can't set the geometry of the DrawEventArgs - I get something like this: set accessor of property is not accessible&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation say that is is a setable property - below is the code I am tryinh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pl As ESRI.ArcGIS.Client.Geometry.Polyline = New ESRI.ArcGIS.Client.Geometry.Polyline()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pl.SpatialReference = MainMap.SpatialReference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pl.Paths.Add(ptsCurrent)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim arg As ESRI.ArcGIS.Client.DrawEventArgs = New ESRI.ArcGIS.Client.DrawEventArgs()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arg.Geometry = pl (this line error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GraphicDrawObject_DrawComplete(Nothing, arg)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73157#M1781</guid>
      <dc:creator>RobertMEIER</dc:creator>
      <dc:date>2012-06-15T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically fire DrawComplete Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73158#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a CompleteDraw() method on the Draw object.&amp;nbsp; Just call that on your second click and it will fire off the Draw.Complete event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 16:48:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73158#M1782</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2012-06-15T16:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically fire DrawComplete Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73159#M1783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joe, that works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for pointing me in that direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-bert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 17:49:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-fire-drawcomplete-event/m-p/73159#M1783</guid>
      <dc:creator>RobertMEIER</dc:creator>
      <dc:date>2012-06-15T17:49:18Z</dc:date>
    </item>
  </channel>
</rss>

