Select to view content in your preferred language

Can I customize the EditorWidget to edit with the geometry from a graphic polygon?

828
2
08-09-2010 06:40 AM
weiliang
Deactivated User
Hi,

I have a customized graphic polygon, and want to use it's geometry as the input to create a new record for my polygon feature class by using the new editing feature in ArcGIS 10. Can I fulfill this and is there any sample that I can reference?

Many thanks,

Wei
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
The EditorWidget is most useful for editable FeatureLayers because you may use TemplatePicker and other buttons with it. So if the only geometry service you would like to use is for Edit Geometry, it might be better idea to use a single button "Edit Geometry" (see this sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave

If you are working with a GraphicsLayer and you know which graphic you will be editing, say you listen to a MouseLeftButtonDown event, you can update the button's CommandParameter and pass this graphic.

Jennifer
0 Kudos
weiliang
Deactivated User
Thanks so much for your quick reply, Jennifer. I appreciate it very much. You explanation and sample looks good, and I will try to customize and incorporate it into our project.

Have a great day!

Wei
0 Kudos