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.
Which textblock do you mean? The element caption or the textblocks embedded in the tooltip content?
I was referring to yours (Grahan Murray). When I hover over the map element, the only time that I get a tooltip is when I am on the TextBlock. If I remove the first TextBlock, I get nothing.
Which solution are you talking about? Mine or Mihail's? If you use the solution I proposed then the tooltip should show up no matter where you hover on the element, or do you mean something else?
-Graham
This works for a tooltip for the TextBlock within the DataTemplate however, I was hoping to have a tooltip available for the whole element so that if I hovered over any part of it I would see the tooltip. Is there a way to do that?
Its the last section of code in the code behind portion of the post.