<?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 Re: Display diameter of a circle as the user draws it in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651154#M16688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2012 01:03:22 GMT</pubDate>
    <dc:creator>TylerRothermund</dc:creator>
    <dc:date>2012-02-21T01:03:22Z</dc:date>
    <item>
      <title>Display diameter of a circle as the user draws it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651153#M16687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I display the diameter of a circle as the user draws it ?&amp;nbsp;&amp;nbsp; I want the diameter to only be displayed while the user is drawing.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the code from this &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics"&gt;example &lt;/A&gt;&lt;SPAN&gt;to draw the circle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at using the MeasureAction but it seems like there must be a better way than watching the collection changed of the layers so i can create a new graphic that is the correct size, since there is no MeasureComplete event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 20:31:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651153#M16687</guid>
      <dc:creator>TylerRothermund</dc:creator>
      <dc:date>2012-02-14T20:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Display diameter of a circle as the user draws it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651154#M16688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 01:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651154#M16688</guid>
      <dc:creator>TylerRothermund</dc:creator>
      <dc:date>2012-02-21T01:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Display diameter of a circle as the user draws it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651155#M16689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would try using the Draw.DrawBegin, Map.MouseLeftButtonDown and Map.MouseMove events in something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. In Map.MouseLeftButtonDown save the current cursor position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In DrawBegin detect when the shape is a circle and start tracking the cursor's movement by attaching to the MouseMove event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In the MouseMove, obtain the current position and convert it (along with the center's location) to map's coordinates. Then calculate the distance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Add or move a text graphic in a Graphics layer showing the diameter (distance*2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. In DrawComplete detach from the MouseMove event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if you in the DrawBegin event you can access the current Cursor's location; if so you could save step 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 14:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651155#M16689</guid>
      <dc:creator>OrlandoCarvajal</dc:creator>
      <dc:date>2012-02-21T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Display diameter of a circle as the user draws it</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651156#M16690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We don't support this out-of-the-box so would require you to write your own code. Orlando's suggestion sound like a good solution. DrawBegin will not give you the current location but after this is raised, you can use VertexAdded event and get the start point from there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/display-diameter-of-a-circle-as-the-user-draws-it/m-p/651156#M16690</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-22T16:52:50Z</dc:date>
    </item>
  </channel>
</rss>

