Select to view content in your preferred language

Level of Programming Skills for Silverlight API

1116
6
11-29-2010 08:55 AM
MelissaCrane
Deactivated User
I am trying to get a feel for the level of programming skills needed to work with the Silverlight API?  Is it feasible to expect a GIS professional with little programming background to learn C# to develop basic to moderate mapping applications?
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
I think that gaining basic knowledge of C# and Silverlight programming are kind of easy to pick up with the availability of tutorial and other online resource. But "easy" is subjective.

You can maybe try this out yourself and gauge how you feel about using our API.  The API resource center http://esriurl.com/slsdk2 and blogs usually target beginner to intermediate level of programmers.
0 Kudos
dotMorten_esri
Esri Notable Contributor
I think that before you start working with the ESRI API, that you first get to know Silverilght. My experience is that that is the hardest part. Once you know Silverlight, the ESRI API shouldn't be that difficult:  http://www.silverlight.net/getstarted/
0 Kudos
AndrewHayden1
Regular Contributor
Does anyone have a small sample VB project or even just an example of the XAML and VB that shows more than one thing going on at the same time (take something simple like Add Dynamic Layer and Show Mouse Coordinates)?  For whatever reason, I can do one or the other but not both (and the templates all look like CS).
0 Kudos
JenniferNery
Esri Regular Contributor
These samples have corresponding VB code. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddLayerDynamically

Were you trying to do both?

If you merged the two samples and the Map does not contain any layer, it's Extent must still be null unless you've set it already. You can see this check in the MouseMove event handler. It is therefore only after a layer has been added that screen and map coordinates  are retrieved.

Also while your mouse is over another control, like the grid that contains TextBlock for adding URL and Button to add the layer, Map MouseMove will not fire. I'm not sure if you were expecting the screen and map coordinates to be updated then.
0 Kudos
AndrewHayden1
Regular Contributor
Those are the samples I've been trying to do together in the same project.

I don't understand what the VB code behind is doing for the Dynamic layer.  When I run the project, only copying the XAML, the project runs fine.  When I duplicate the VB I get the following error at InitializeComponent():  

" 'InitializeComponent' is not declared. It may be inaccessible due to its protection level."

It looks like the problem is related to the Namespace, but I don't understand it.
0 Kudos
JenniferNery
Esri Regular Contributor
Yes that is very likely.

Be sure that the XAML Class definition,

<UserControl x:Class="  ArcGISSilverlightSDK.AddLayerDynamically"

matches the code-behind namespace and class definition

namespace   ArcGISSilverlightSDK

public partial class   AddLayerDynamically
0 Kudos