|
POST
|
Are you using Editor.Select command to perform selection? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerSelection. Editor.Select accepts the following CommandParameter="new", "add", "remove", "keyboard" http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor~Select.html. You will still have the chance to distinguish which layer had selected graphics if you subscribe to EditCompletedEvent. EventArgs include graphic and layer http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+Change_members.html. You will need to check graphic.IsSelected property though or use layer.SelectedGraphics since all graphics whose selection state were changed (as in "new" selection), are also reported. If you want Editor.Select to only act on subset of GraphicsLayer and FeatureLayer, you can specify their ID's by setting Editor.LayerIDs. Otherwise, setting Editor.Map is sufficient as long as every GraphicsLayer, FeatureLayer have ID property set. Are you using FeatureDataGrid to display the features? If yes, you can use FilterSource to only show SelectedGraphics.
MyDataGrid.FilterSource = l.SelectedGraphics.ToList();
... View more
01-26-2012
04:26 PM
|
0
|
0
|
538
|
|
POST
|
If you are editing geometry and would like to have more control in code-behind on when to stop the edit, you can use EditGeometry. In your case, are you editing attribute? This SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsExplicitSave. Demonstrates how to use Editor.SaveEdits command. Since FeatureLayer.AutoSave=False, commiting the edits (geometry or attribute) need to be explicit. The button enables when there are edits waiting to be committed and OnClick, they get submitted to the server.
... View more
01-26-2012
04:11 PM
|
0
|
0
|
708
|
|
POST
|
This document might help: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000021000000
... View more
01-26-2012
04:05 PM
|
0
|
0
|
716
|
|
POST
|
QueryTask does not return "displayField". You can either read this JSON string yourself: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0?f=pjson. Use GetDetails(layer id) from ArcGISDynamicMapServiceLayer: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~GetDetails.html or use FeatureLayer.LayerInfo.DisplayField.
... View more
01-26-2012
04:02 PM
|
0
|
0
|
725
|
|
POST
|
The following SDK sample use MapProgressBar: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MapProgressBar. Should you need to customize the control to add TextBlock, you can follow this blog post http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/05/28/Localizing-ArcGIS-Controls.aspx. Source code can be found here: http://esrisilverlight.codeplex.com/, if you find that behavior of ProgressBar also need to change.
... View more
01-25-2012
09:25 AM
|
0
|
0
|
590
|
|
POST
|
Have you tried running the code inside Dispatcher.BeginInvoke()? I don't know if that will make a difference but I think you can also use either LayoutUpdated or SizeChanged event. http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.layoutupdated%28v=vs.95%29.aspx. You can subscribe to this event only if Map.ExtentChanged.
... View more
01-25-2012
08:35 AM
|
0
|
0
|
601
|
|
POST
|
Are you part of esri beta community? If yes, you might want to post in that forum since v3.0 is still at beta state. As for the NullReference exception. e.PrintResult will be null if e.Error has a value so modify the code to this:
private void printTask_PrintCompleted(object sender, PrintEventArgs e)
{
if (e.Error != null)
{
MessageBox.Show(e.Error.Message);
return;
}
System.Windows.Browser.HtmlPage.Window.Navigate(e.PrintResult.Url, "_blank");
}
Please post to 10.1 server forum in the beta community to ask how you can set up your own print service. They have one that you can simply enable under Utilities.
... View more
01-24-2012
11:56 AM
|
0
|
0
|
947
|
|
POST
|
What version of the API are you using? v2.3 and up will raise VertexAdded even for the first point. You can quickly try the following code, VertexAdded is raised immediately after DrawBegin for the first point and then for every vertex added.
Draw d = new Draw(MyMap){DrawMode= ESRI.ArcGIS.Client.DrawMode.Polygon, IsEnabled = true};
d.DrawBegin += (s, e) =>
{
};
d.DrawComplete += (s, e) =>
{
};
d.VertexAdded += (s, e) =>
{
};
... View more
01-24-2012
11:49 AM
|
0
|
0
|
2348
|
|
POST
|
To disable map navigation on MouseLeftButtonDown, you can mark this e.Handled = true. This disables both pan and zoom. This SDK sample demonstrates how you can call Map.PanTo(): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#PanButtons
... View more
01-24-2012
08:38 AM
|
0
|
0
|
683
|
|
POST
|
What version of the API are you using? Have you tried making the web request outside your Silverlight app? You can run Fiddler to see what parameters your app is using and set the same parameters from your web browser when you go to REST endpoint. I am not aware of format change between server versions so I wanted to know if we can identify the issue. Thanks.
... View more
01-23-2012
07:56 AM
|
0
|
0
|
744
|
|
POST
|
This SDK sample shows how you can set Editor attached properties (SnapDistance and SnapKey): http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#EditToolsAutoSave <esri:Map x:Name="MyMap" WrapAround="True" Extent="-13054165,3850112,-13027133,3863559" esri:Editor.SnapDistance="20" esri:Editor.SnapKey="S"> The same code applies in EditorWidget and TemplatePicker. This Snap properties will affect Draw and EditVertices. In the above example, snapping is activated by pressing "S" key down.
... View more
01-23-2012
07:37 AM
|
0
|
0
|
926
|
|
POST
|
Unfortunately this is not a metadata that the API has made available for you. However you can easily make parse this JSON: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/StantonCountyKSLeases/MapServer/0/1/htmlPopup?f=pjson. Where "1" in the url is the feature ID.
... View more
01-22-2012
07:08 PM
|
0
|
0
|
1239
|
|
POST
|
Have you looked at this blog post: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx?
... View more
01-22-2012
06:38 PM
|
0
|
0
|
3563
|
|
POST
|
You can also do Map.Layers["WorkOrders"] as FeatureLayer since Map.Layers is a LayerCollection that can be accessed by index (Layer ID).
... View more
01-22-2012
06:35 PM
|
0
|
0
|
830
|
|
POST
|
You probably can but you might need to modify some code as this sample was written for Silverlight. You can contact the contributor directly for questions about their sample. Also in the future you might want to post WPF-related questions in this forum http://forums.arcgis.com/forums/131-ArcGIS-API-for-Microsoft-WPF so other WPF users can benefit from your post.
... View more
01-20-2012
09:54 AM
|
0
|
0
|
559
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 12:13 PM | |
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-13-2026
09:07 AM
|