Select to view content in your preferred language

Custom editing

813
5
10-12-2012 05:47 AM
joaquinfernandez
Regular Contributor
Hi All,

I am a Silverlight newbie here so be forewarned. I have looked at the samples in the SDK for editing And was able to get all the samples to work, But they use xaml and binding stuff.  On the online doc under custom editing solutions it mentions that it can be done but has no examples. Does anyone have an example using code behind to just create a simple polyline, or link that can point me in the right direction?   I am using VS2010 with VB.
My goal is to do the following.

1. Add (Line, Polygon & point.)
2. Select
3. edit

Thanks a whole lot in advance.
Jack.
0 Kudos
5 Replies
DominiqueBroux
Esri Frequent Contributor
Does anyone have an example using code behind to just create a simple polyline, or link that can point me in the right direction?
Did you look at this sample which adds graphics by code?
0 Kudos
joaquinfernandez
Regular Contributor
Yes, again forgive all my newbie questions but is graphics layer the same as feature layer and if not can you move data from one to the other?
0 Kudos
deleted-user-ATjHIWsdQYmT
Deactivated User
You can create a new feature in your feature layer and pass the geometry of the graphic to the newly created feature.
0 Kudos
HusnanM
Emerging Contributor
Hi..
you can use esri widgetEditor
please take a look at http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget
it can perform your goal and save feature to database.

if you want to programmatically use the ESRI.ArcGIS.Client.Editor  and binding to xaml button
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Yes, again forgive all my newbie questions but is graphics layer the same as feature layer and if not can you move data from one to the other?

GraphicsLayer is the base class of FeatureLayer. So the sample codes working with GraphicsLayer should also work with FeatureLayer.

FeatureLayer adds mainly the capability to get/store graphics from/to a feature service.
0 Kudos