<?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: EditGeometry Rotation on Rectangle Causes NullReferenceException in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581459#M2950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right the issue probably exist in v2.4. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems fixed in v3.0 Pre-release sample: &lt;/SPAN&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#DrawGraphics"&gt;http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#DrawGraphics&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2012 21:05:42 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2012-05-17T21:05:42Z</dc:date>
    <item>
      <title>EditGeometry Rotation on Rectangle Causes NullReferenceException</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581456#M2947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I create a DrawMode.Rectangle graphic, start an EditGeometry on it, move the rectangle, then try and rotate it... it throws a NullReferenceException.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I don't move the rectangle first, the rotation works fine.&amp;nbsp; But after moving the rectangle, then rotating it crashes.&amp;nbsp; This does not seem to happen for any of the other DrawMode types... just the rectangle.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known bug? Any workarounds?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am running version 2.4 of the WPF API on .NET 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for any info!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*UPDATE - The rectangle's Graphic.Geometry is of type Envelope... all others are of type Polygon.&amp;nbsp; So seems the problem is with rotating envelopes after a move.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 01:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581456#M2947</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2012-05-17T01:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: EditGeometry Rotation on Rectangle Causes NullReferenceException</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581457#M2948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually, Rotation should not be enabled for Envelope geometry. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If however, you converted Envelope to Polygon, just as this code does: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; var env = e.Graphic.Geometry as Envelope; &amp;nbsp;&amp;nbsp; Polygon p = new Polygon() { SpatialReference = env.SpatialReference }; &amp;nbsp;&amp;nbsp; PointCollection ring = new PointCollection(); &amp;nbsp;&amp;nbsp; ring.Add(new MapPoint(env.XMin, env.YMin)); &amp;nbsp;&amp;nbsp; ring.Add(new MapPoint(env.XMin, env.YMax)); &amp;nbsp;&amp;nbsp; ring.Add(new MapPoint(env.XMax, env.YMax)); &amp;nbsp;&amp;nbsp; ring.Add(new MapPoint(env.XMax, env.YMin)); &amp;nbsp;&amp;nbsp; ring.Add(new MapPoint(env.XMin, env.YMin)); &amp;nbsp;&amp;nbsp; p.Rings.Add(ring); &amp;nbsp;&amp;nbsp; e.Graphic.Geometry = p;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still did not get NullReference after rotate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581457#M2948</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-05-17T18:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: EditGeometry Rotation on Rectangle Causes NullReferenceException</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581458#M2949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool, thanks Jennifer... silly me didn't even think to convert it from an envelope to a polygon, but that worked great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as reproducing the error, did you move the envelope around first?&amp;nbsp; Because the rotate does work until you move it around.&amp;nbsp; I can make this happen with this Silverlight example too: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Create a rectangle, start editing, move the rectangle, then rotate it.&amp;nbsp; It doesn�??t throw an error in the example that I can see, but the rectangle does disappear and act up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 19:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581458#M2949</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2012-05-17T19:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: EditGeometry Rotation on Rectangle Causes NullReferenceException</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581459#M2950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right the issue probably exist in v2.4. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems fixed in v3.0 Pre-release sample: &lt;/SPAN&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#DrawGraphics"&gt;http://resourcesbeta.arcgis.com/en/help/silverlight-api/samples/start.htm#DrawGraphics&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 21:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/editgeometry-rotation-on-rectangle-causes/m-p/581459#M2950</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-05-17T21:05:42Z</dc:date>
    </item>
  </channel>
</rss>

