I want to compose my own project in deep zoom composer however I would like to know on how to add text per image zoomed in just like the hard rock memorabilia
I want to consume it, using silverlight 4.0
As you notice, under right pane, it has its description about the image.
Thank you.
This is definitely doable. I've done something similar and it worked great. The following example will show information specific to a clicked image. You can modify it depending on if you want the information to be dispayed on mouseover, click, or even when zoomed. It's entirely up to you.
First off, add a MultiScaleImage to your canvas...
...and somewhere else on the canvas, add a TextBlock to be used to display the information:
Next, create a class to hold the information for each "tile", add some dummy information, and add a bunch of tiles to a List:
Now that the list is full of tile information, we need to wire up the MouseLeftButtonDown event handler to detect when an image is clicked and ultimately to determine the index of the clicked image. With the index then we only need to search our list for the appropriate tile details and then display on the canvas.
In your code-behind, place the following:
The following is the "secret sauce". It will find the index of the clicked image.
And that's it. As long as your image indexes have a corresponding image in your list then clicking on an image inside of the MultiScaleImage object will result in the image info being displayed.