Dynamic MapTip text

433
1
Jump to solution
01-17-2013 11:27 AM
LuisGarcia2
Occasional Contributor II
My application has a requirement for allowing the client to change the data they want displayed on the MapTips. I saw this thread and that helps because they are adding it programmatically which is what I think I need. But still they seem to have all the data set up to the same data source all the time.
On my side, I thought that I could create my own UserControl and handle what I need there, such as setting up the data sources, and then add that to the MapTip. But I did not see anything in the MapTip class (like a property) that would allow me to do that. So I tried this:

MapTip tip = (MapTip)((FrameworkElement)(new MyMapTips()));


where "MyMapTips" is just my user control formatted the way I want. With that, I can build the application; but it does not start.
Any suggestions on this? Any other strategies/ideas that may be better?

Thanks in advance!
0 Kudos
1 Solution

Accepted Solutions
LuisGarcia2
Occasional Contributor II
Never mind, I got it figured out. It has to be done in the graphic.MapTip property. And there I can add the data I want to my tip.
Thanks!

View solution in original post

0 Kudos
1 Reply
LuisGarcia2
Occasional Contributor II
Never mind, I got it figured out. It has to be done in the graphic.MapTip property. And there I can add the data I want to my tip.
Thanks!
0 Kudos