I have a CXML file describing a Pivot collection with a number of objects. Each object is described by a tag like:
<I Id="0" N="0" Source="tiles/684.xml">
<Size Width="2604" Height="3140"/>
</I>
I load the CXML using a CxmlCollectionSource
that I connect to a PivotViewer
control. This all works fine.
Now I want to display the image that corresponds to any of the objects in the collection outside of the PivotViewer
. I have added a MultiScaleImage
control to my app to do that. It has a Source
property that accepts URLs to DeepZoom XML files (i.e. to the files referenced by the Source
attribute in the CXML).
But I don't know how to get that value because there does not seem to be any way to retrieve it via either PivotViewerItem
or the CxmlCollectionSource
. PivotViewerItem
has a VisualImageId
property, which is an index into the item collection, but that does not help much, since I cannot get from that ID to the Source
attribute.
Again, the final objective is simply to display an image that corresponds to an object in a Pivot collection. If there is a better/easier way to do that, I would love to hear it!