Deepzoom is one of the features of Silverlight and is also added to Windows Phone 7. This feature should now be considered the main function of the Phone7 UI. Because many of Phone7 's UI is deepzoom developed, in addition to the MIX10 Assembly has exhibited comic reading software is also developed by the Deepzoom, which can also see the importance of this function in the Phone7.
A To develop Deepzoom, you first need deepzoom composer the tool under expression to generate the Deepzoom atlas.
Two Create a new Windows Phone application and add the following statement to the XAML design window:
<MultiScaleImage x:Name="msi" Width="486" Height="652" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-6,0,0,0" />
Only multiscaleimage can be used in Phone7 to show the Deepzoom Atlas.
Three Add the Deepzoom composer generated Atlas to the project.
Four Add the following code to display the atlas:
this.msi.ImageOpenSucceeded += new RoutedEventHandler(msi_ImageOpenSucceeded);
void msi_ImageOpenSucceeded(object sender, RoutedEventArgs e)
{
Point point = this.msi.ViewportOrigin;
msi.ViewportWidth = 1;
msi.ViewportOrigin = new Point(0, -0.3);
}
this.msi.Source = new DeepZoomImageTileSource(new Uri("Assets /dzc_output.xml", UriKind.Relative));