<?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 Using the Editor class to Edit Graphics from a GraphicsLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358252#M9159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a GraphicsLayer with some polygons. I want to be able to edit the vertices of these polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I do it using the ESRI.ArcGIS.Client.Editor set of commands (Add, CancelActive, ClearSelection, Cut, DeleteSelected, EditVertices, Move, Reshape, Save and Union) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the selection commands seem to work fine but the EditVertices is not. Do I need a Geometry Service even if I'm working with a GraphicsLayer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 21:19:03 GMT</pubDate>
    <dc:creator>FrancoisChartrand</dc:creator>
    <dc:date>2010-09-21T21:19:03Z</dc:date>
    <item>
      <title>Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358252#M9159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a GraphicsLayer with some polygons. I want to be able to edit the vertices of these polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I do it using the ESRI.ArcGIS.Client.Editor set of commands (Add, CancelActive, ClearSelection, Cut, DeleteSelected, EditVertices, Move, Reshape, Save and Union) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the selection commands seem to work fine but the EditVertices is not. Do I need a Geometry Service even if I'm working with a GraphicsLayer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 21:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358252#M9159</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2010-09-21T21:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358253#M9160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the Editor commands should also work on your GraphicsLayer provided that this layer belongs to the Map, has a specified ID and is not excluded in the LayerIDs property. And yes, you need to set GeometryServiceUrl in order to perform Cut, Reshape, Union, AutoComplete Add, and AutoSelect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For EditVertices, make sure CommandParameter is set to null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 13:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358253#M9160</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-22T13:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358254#M9161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It doesn't work... Here is my checklist:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The GraphicsLayer has an ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The GraphicsLayer belongs to the Map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The GraphicsLayer's ID is the only ID in LayerIDs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The GeometryServiceUrl is not set (but it is not required for the EditVertices command, right?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Editor.EditVertices.CanExecute(null) returns true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Editor.EditVertices.Execute(null) is called with no paramater&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Result: I can move the graphics, but I cannot edit the vertices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To draw the polygons, I'm using the Draw class as shown in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#DrawGraphics"&gt;this sample&lt;/A&gt;&lt;SPAN&gt;. The FillSymbol has a custom ControlTemplate. Could it be related?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 14:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358254#M9161</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2010-09-22T14:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358255#M9162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using the same SDK sample link that you provided, I added the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Under Grid.Resources:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;esri:Editor x:Key="MyEditor"&amp;nbsp; Map="{Binding ElementName=MyMap}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And inserted this before the Grid closes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Button Content="EditVertices" HorizontalAlignment="Center" VerticalAlignment="Center" DataContext="{StaticResource MyEditor}" Command="{Binding EditVertices}" CommandParameter="{x:Null}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm able to Move/Edit geometry using EditVertices command. I do notice that if you added a rectangle, you're only allowed to move the graphic. If you added a polygon, you should be able to edit the vertices of the graphic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 18:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358255#M9162</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-22T18:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358256#M9163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are right &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt; I was using rectangles... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any reason why it is not possible to edit rectangles?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 19:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358256#M9163</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2010-09-22T19:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358257#M9164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your post. We just found out after reproducing your issue that we currently do not support editing vertices of an Envelope geometry (or Rectangle). However, this is something we might look into after 2.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 22:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358257#M9164</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-22T22:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358258#M9165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a workaround, I'm converting the Envelope geometry to a Polygon. This allows moving and editing the rectangles. However, the rectangles are loosing their right angles when editing them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void MyDrawObject_DrawComplete(object sender, ESRI.ArcGIS.Client.DrawEventArgs args)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;

&amp;nbsp;&amp;nbsp;&amp;nbsp; Envelope envelope = (Envelope)args.Geometry;

&amp;nbsp;&amp;nbsp;&amp;nbsp; Polygon rectangle = new Polygon();
&amp;nbsp;&amp;nbsp;&amp;nbsp; PointCollection pointCollection = new PointCollection
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(envelope.XMin, envelope.YMin),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(envelope.XMin, envelope.YMax),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(envelope.XMax, envelope.YMax),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(envelope.XMax, envelope.YMin),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(envelope.XMin, envelope.YMin)
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; rectangle.Rings.Add(pointCollection);

&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic()
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry = rectangle,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Symbol = _activeSymbol,
&amp;nbsp;&amp;nbsp;&amp;nbsp; };

&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.Graphics.Add(graphic);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358258#M9165</guid>
      <dc:creator>FrancoisChartrand</dc:creator>
      <dc:date>2021-12-11T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Editor class to Edit Graphics from a GraphicsLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358259#M9166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just came across this forum thread. If you are interested to try out v2.2 beta: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/2.2/samples/start.htm#DrawGraphics"&gt;http://help.arcgis.com/en/webapi/silverlight/2.2/samples/start.htm#DrawGraphics&lt;/A&gt;&lt;SPAN&gt;. EditVertices now support Envelope geometry through scaling.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 15:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/using-the-editor-class-to-edit-graphics-from-a/m-p/358259#M9166</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-17T15:55:28Z</dc:date>
    </item>
  </channel>
</rss>

