Select to view content in your preferred language

Editing question.

583
1
05-25-2010 10:42 AM
DougCollins
Regular Contributor
I have been working with the Explicit Save Editing sample using SL4 and the 2.0beta API.  I am trying to figure out how to change some of the attributes such as the default polygon color that gets placed on the feature layer.  I am not sure if this is possible using these particular editor tools, or are there parameters that I can add to each "button"? 
I have also looked at the TemplatePicker sample, but have the same problem in that I am not sure how to change the colors for example.  

I am rather new to Silverlight, so I am stumbling around a bit.
Any pointers in the right direction would be appreciated.

Thanks,
Charlie
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
If you are hitting a FeatureService the rendering of the layer are coming from the server. It is also the server that drives what the symbology looks like in the TemplatePicker. If you want to change it, the simplest way is to update the symbology in your service.

To see what parameters a specific command takes, refer to the individual commands in the Editor's library reference: http://help.arcgis.com/en/webapi/silverlight/apiref/topic214.html

Some other gotcha's:
- Your Feature/GraphicsLayers must have the ID property set. Editor ignores any layers that doesn't have an ID.
- Commands that require a geometry service are only available if the Editor's geometry service url property is set.
0 Kudos