I have a MapLayer that shows where each of my customers are when I click on a dot it must fire the mouse event but nothing happens? Any Ideas?
Andrew
I am quite new to silverlight and find I cannot access any control and modify parameters so you are asking the wrong person, in my case I have a radio button group I would like to have one option selected when the app starts but cant change it in XAML or at runtime. So it looks like the same issue,
On my map I have several layers depending on the Type of data I want to display, one for shops and one for customers depending on the layer I have a different image for displaying items, in the case of my customers I use the amount of stock they have and then use a colour scale to have the customer dots coulr change depeding on volumes.
If someone could tell me the correct way of accessing controls and modifing them in silverlight at runtime this would fix both our issues
hi
fine answer look good.i want to load image based on some value.i want to set the image source in codebehind but i cant access the image using its name when i have the code like this
igMap:MapLayer x:Name="SymbolLayer"> <igMap:MapLayer.ValueTemplate> <DataTemplate> <Image Width="50" Height="50" x:Name="img1" Source="images/red.png"/> </DataTemplate> </igMap:MapLayer.ValueTemplate> </igMap:MapLayer>
but if i use in the following way i can
<grid>
<Image Width="50" Height="50" x:Name="img1" Source="images/red.png"/>
</grid>
can you please check
Well I did not use the Mapelemet event mentioned in the post from Infragistics,
What I did is create a Transparent PNG Image and use this as the Datatemplate for the layer I then assigned a Identifier from the Db to the image TAG property and used the MouseClick event on the image to fire the event, a bit crude I will admit but it did the trick.
Hi,
me too having the same problem mouse click event doesn't fire but mouse enter and leave event is working. how you rectified it
Or for that matter XamWebMap.ElementClick?
If these don't work for your let me know more about how your layer is setup so that I can try to put a sample together.
-Graham