Please give me a sample of adding a custom tooltip to the XamWebMap MapLayer that would be attached to an .shp file and would have a TextBlock bound to a DataMapping item.
Ok, where do I find the "thePopup" variable for this solution?
Hey,
I'm obviously having some trouble visualizing whats going on in your application. Is there a way you can provide a sample that demonstrates the problem you are having?
-Graham
I am not wanting to keep the tooltip open. I just want the tooltip to be available no matter where I am on the mapelement. With the current solution, the only time that I see the tooltip is when the first TextBlock is shown on the map and I hover directly over the TextBlock that is shown.
Do you mean that you transfer your mouse to the tooltip and it doesn't stay open once your mouse leaves the underlying element? If you want to keep the overlayed content open while you interact with it you might need to use a programatically controlled popup instead and listen to the element hover/unhover events see my response here for some info in that regard: http://community.infragistics.com/forums/p/42136/233910.aspx#233910
<TextBlock FontSize="10" FontWeight="Bold" Text="{Binding Path=Name, StringFormat='Name: {0}'}" />