<?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 Can we create a graphic and add to any feature layer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-we-create-a-graphic-and-add-to-any-feature/m-p/466741#M12057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a polygonon a graphic layer using DrawObject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add it to some featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featurelayer f= MyMap.FeatureLayer["myfeaturelayer'] as FeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic g=new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;g.symbol=MySimpleFillSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;g.geometry= args.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f.Graphics.Add(g)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f.SaveEdits();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and it does not allow to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//is there any other way to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 19:17:44 GMT</pubDate>
    <dc:creator>MuralidharMoka</dc:creator>
    <dc:date>2011-05-19T19:17:44Z</dc:date>
    <item>
      <title>Can we create a graphic and add to any feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-we-create-a-graphic-and-add-to-any-feature/m-p/466741#M12057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a polygonon a graphic layer using DrawObject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add it to some featureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is it possible ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featurelayer f= MyMap.FeatureLayer["myfeaturelayer'] as FeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic g=new Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;g.symbol=MySimpleFillSymbol;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;g.geometry= args.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f.Graphics.Add(g)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f.SaveEdits();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this and it does not allow to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//is there any other way to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 19:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-we-create-a-graphic-and-add-to-any-feature/m-p/466741#M12057</guid>
      <dc:creator>MuralidharMoka</dc:creator>
      <dc:date>2011-05-19T19:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can we create a graphic and add to any feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-we-create-a-graphic-and-add-to-any-feature/m-p/466742#M12058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to do this. Is your FeatureLayer already Initialized? What error message are you getting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need to set Graphic.Symbol though but you may need to give it default values for the attributes. Usually you want to use Editor.Add or TemplatePicker to add the simplified feature with default attributes. But if you are using Draw class, you can go through the LayerInfo.Fields to know what default attribute value to give the feature. See Post# 4 in this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/18542-How-to-save-the-feature-in-featurelayer-back-to-geometry-service"&gt;http://forums.arcgis.com/threads/18542-How-to-save-the-feature-in-featurelayer-back-to-geometry-service&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2011 21:35:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-we-create-a-graphic-and-add-to-any-feature/m-p/466742#M12058</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-05-23T21:35:48Z</dc:date>
    </item>
  </channel>
</rss>

