|
POST
|
You can right-click on the Project and see "Properties", under Silverlight tab, there is Default namespace. Also you should have something like
Imports System
Namespace ForumTest
'more code here
End Namespace
In the sample above, whatever class I create within this namespace is only accessible through "ForumTest", this must match the namespace definition you have in XAML. It should be "ESRI.ArcGIS.SilverlightMapApp" or you can update xmlns to use "ForumTest" (ForumTest is just my example, yours can be named different.
... View more
11-08-2010
09:27 AM
|
0
|
0
|
1321
|
|
POST
|
Can you share the StackTrace? Also try to use Fiddler while running your SL app in your test machine. http://www.fiddler2.com/Fiddler2/version.asp The more information you can share with us, the better. Thanks 🙂
... View more
11-08-2010
09:22 AM
|
0
|
0
|
733
|
|
POST
|
This is correct, the Draw object, creates a new GraphicsLayer on top of your layers. Therefore Layers.CollectionChanged event will fire. You can probably ignore if the layer added has no ID to distinguish the layer you create and the layer the API creates dynamically.
... View more
11-08-2010
09:16 AM
|
0
|
0
|
462
|
|
POST
|
You can learn more about FeatureService here: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/What_is_a_feature_service/009300000020000000/
... View more
11-08-2010
09:06 AM
|
0
|
0
|
877
|
|
POST
|
I tried your code with 2.1 RC and I was not able to reproduce the error. Do you have ESRI.ArcGIS.Client and ESRI.ArcGIS.Client.Behaviors added to your project references? Can you check the file path where it is pointing to?
... View more
11-08-2010
08:00 AM
|
0
|
0
|
2093
|
|
POST
|
Sure. Look at the namespace definition of your project and your classes, they need to be "ESRI.ArcGIS.SilverlightMapApp" for this namespace to be valid in your xaml.
... View more
11-08-2010
07:52 AM
|
0
|
0
|
1321
|
|
POST
|
Oh I sent this link just as a guideline how you can calculate scale based on resolution and DPI, since LOD includes Resolution and your DPI varies, you can use the same formula to calculate the scale.
... View more
11-08-2010
07:50 AM
|
0
|
0
|
789
|
|
POST
|
I can submit this request to our dev lead for consideration in making it public. For now, there's nothing stopping you from creating your own renderer if you implement IRenderer. This might be your best bet if UniqueValueRenderer is not sufficient for your current need. Thank you for the feedback.
... View more
11-08-2010
07:46 AM
|
0
|
0
|
725
|
|
POST
|
The Where property of a Query is any legal SQL Where clause as been said here: http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Query~Where.html So I don't think you can get repeating values by updating the query alone. You can probably use System.Linq query on the results. Please don't hold me accountable for the syntax 🙂 but I think it's something like this:
var repeatingValues = from g in args.FeatureSet.Features
group g by g.Attributes["FieldName"] into f
where f.Count() > 1
select f.Key;
... View more
11-07-2010
01:36 PM
|
0
|
0
|
576
|
|
POST
|
There's no way to turn off this feature at the moment. But I'll share this with our lead developer for consideration.
... View more
11-07-2010
12:18 PM
|
0
|
0
|
1928
|
|
POST
|
You wanted to install and develop using ArcGIS API for Microsoft Silverlight/WPF? The following are the requirements for installation http://help.arcgis.com/en/webapi/silverlight/help/Installation.htm. The first requirement on the list is VS 2010 and according to their minimum requirements https://www.microsoft.com/visualstudio/en-us/products/2010-editions/professional, you need Windows.
... View more
11-05-2010
07:13 PM
|
0
|
0
|
497
|
|
POST
|
If you have a related table you need to update, you can update it as you would any FeatureLayer. For example this FeatureService http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer. It includes a layer with Point geometry and a related table. The layer's objectid and the table's sf_311_serviceoid field must match. What you can do is have two FeatureLayer, one for the layer (added to your map layers) and one for the table (not part of map). The FeatureLayer for the layer can be updated using FeatureDataGrid. The FeatureLayer for the table can be updated using FeatureDataForm. When you select a graphic in the FeatureLayer for the layer or select a row in the FeatureDataGrid, you can update the Where property of the FeatureLayer for the table (i.e. sf_311_serviceoid field = 3973, where 3873 is the graphic.Attributes[layer.LayerInfo.ObjectIDField]). Call Update() on this layer and in the UpdateCompleted event, set the FeatureDataForm's FeatureLayer and GraphicSource properties. This should allow you to edit both layer and table simultaneously.
... View more
11-05-2010
06:59 PM
|
0
|
0
|
930
|
|
POST
|
Hi. I'm sorry I think Ryan is using WPF. If you are using Silverlight, I think using Loaded event is fine. But still try to do one step at a time as I suggested in the other thread. Make sure that the map and scalebar loads fine with this style before changing anything else so we know atleast that part works.
... View more
11-05-2010
02:23 PM
|
0
|
0
|
1466
|
|
POST
|
Oh I see, thanks for the clarification. I see what you mean now. I looked further and I know this is by design. Using either EditorWidget "New Selection" button or the Editor Select command with CommandParameter="New" yields to the same result: The first time you make a selection, "SelectionCount" and "SelectedGraphics" property changed are raised once. The next time you make a new selection, "SelectionCount" and "SelectedGraphics" property changed are raised twice. One for deselecting previous selection and the other for making the new selection. If now you use "Add Selection" button instead or CommandParameter="Add", the result is different in that every selection will raise "SelectionCount" and "SelectedGraphics" property changed only once each time. This is the intended behavior.
... View more
11-05-2010
12:26 PM
|
0
|
0
|
1183
|
|
POST
|
Look at how userControl was defined in your XAML namespace. There should be something like this <xmlns:userControl="..."/> That namespace definition must match the namespace in your DropDownMenu XAML and code-behind.
... View more
11-05-2010
12:14 PM
|
0
|
0
|
1321
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 04-05-2024 06:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2026
09:38 AM
|