2011-03-31 49 views

回答

1
Image myImage3 = new Image(); 
BitmapImage bi3 = new BitmapImage(); 
bi3.BeginInit(); 
bi3.UriSource = new Uri("smiley_stackpanel.PNG", UriKind.Relative); 
bi3.EndInit(); 
myImage3.Stretch = Stretch.Fill; 
myImage3.Source = bi3; 

As mentioned above easily found here