Printing problem in Silverlight 4.0 RC - loading images in code behind
- by Jacek Ciereszko
Few days ago I faced a problem with printing in new Silverlight 4 RC. When you try to dynamically load image (in code behind) and print it, it doesn't work. Paper sheet is blank.
Problem
XAML file:
<Image x:Name="image" Stretch="None" />
XAML.cs:
image.Source = new BitmapImage(new Uri(imageUri, UriKind.RelativeOrAbsolute));
Print:
var…