I am creating a silverlight telerik map application. Orignally, I developed it with the SilverLight 4 controls, but I needed to bump the version back to the SilverLight 3 so I used the asseblies for Silverlight 3 (RadControls_for_Silverlight_3_2010_2_0924_DEV_hotfix). I have now got it all working except for one thing. In the application I add pushpins for locations each of which have different statuses. I want to set the background color of the pin to reflect the status of the location. I was able to to this in SilverLight 4, but can't get this to work with Silverlight 3.
The code I use is as follows:
Pushpin pin = new Telerik.Windows.Controls.Map.Pushpin();
FacLocation status = (FacLocation)e.UserState; ;
if (status.Status == "01")
if (status.Status == "02")
if (status.Status == "03")
Location loc = new
loc.Latitude = lat;
loc.Longitude = lon;
This code worked fine with the SilverLight 4 assemblies, but has no effect in Silverlight 3, all the pins just come up with a red background. I have debugged the code and it seems to be correctly setting each pushpin's background as they are added to the map. Can anyone tell me how to dynamically reset the background color of the pushpins, using the Silverlight 3 assemblies?
Alec von Brand