UPDATE 2-Oct-08: Deep Zoom Tag Cloud example updated for RC0
Adding tags within the latest Deep Zoom Composer is a neat way to navigate DeepZoom 'Collections'.
But if we are going to introduce a new file (Metadata.xml) why not really leverage it?
To that end, I've added a Description element to the Metadata.xml file and typed my own descriptions for each image in my collection. There are two new
TextBlocks in the Silverlight control to show the data, and whenever your mouse is over an image, its Tag and Description are displayed. Try it out (beta 2) (or RC0).
The code to match extract the description is a simple extension of the Tag sample.
Then we need to add some code to the
MouseMoveevent to see what
SubImageHitTest()from ProjectSilverlight to determine the index of the image to show Tag/Description for.
Finally, you'll notice the 'browse by tag' is now a very basic "cloud". To accomplish that I replaced the ListBox with WrapPanel for Silverlight 2.0 off CodeProject, replaced the items with Buttons and added this
The updated files are Page.xaml.cs and Page.xaml.