Skip to main content

Microsoft Silverlight

Answered Question Load MultiScaleImage DynamicallyRSS Feed

(0)

ekleeman
ekleeman

Member

Member

59 points

42 Posts

Load MultiScaleImage Dynamically

Can anyone see a reason this would not work?  GeneratedImages is the output of a DeepZoom Composer project. No errors are generated, just no image.

 

this.panel7Canvas.Children.Clear();

string panel7img1Xaml = string.Empty; panel7img1Xaml += "<MultiScaleImage xmlns='http://schemas.microsoft.com/client/2007' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml' ";

panel7img1Xaml += "Source='GeneratedImages/dzc_output.xml'/>";

MultiScaleImage panel7img1 = XamlReader.Load(panel7img1Xaml) as MultiScaleImage;

this.panel6Canvas.Children.Add(panel7img1);

hoonius
hoonius

Member

Member

283 points

54 Posts

Answered Question

Re: Load MultiScaleImage Dynamically

could you not just do

 

MultiScaleImage panel7img1 = MultiScaleImage();

panel7img1.Source = new DeepZoomImageTileSource(new Uri("GeneratedImages/dzc_output.xml", UriKind.Relative));

this.panel6Canvas.Children.Add(panel7img1);

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities