In my desktop application i want to place a country map and states clickable. On clicking certain state the color 开发者_StackOverflow中文版of state should change and it should show some state specific info.
What will be the best approach to do it?
-HD
WPF shapes such as the Path are clickable so it is relatively easy to capture a click on a state and change the fill of the shape. The hard part is drawing all the shapes.
You can make image maps with GIMP. Go here for an official tutorial from GIMP: http://www.gimp.org/tutorials/Image_Map/
Now, you'll have to figure the rest out in the programming language you are using. :)
精彩评论