Multimedia control, the so-called audio and video control, image control, in the Phone7, there are many different from Silverlight.
An. Image: An image control used to display local or network images. This control supports only a few image formats, and it needs to be decoded if you want to display other image formats.
<image x:name= "Image" source= "chrysanthemum.jpg" height= "" width= ""/>
In XAML, you can set the relative path of a picture in the Source property, and the picture must be content and copy into the XAP package, otherwise it cannot be displayed.
You can also load a picture in code:
Image. Source = new BitmapImage (New Uri ("Chrysanthemum.jpg", urikind.relative));
can also load online pictures, as long as the absolute address on it:
Image1. Source = new BitmapImage (The new Uri ("http://ts3.cn.mm.bing.net/images/thumbnail.aspx?q=191518215482&id= bec03c581dba154b8d310e9f262f3711&url=http%3a%2f%2fimg6.uutuu.com%2fdata6%2fa%2fph%2flarge%2f091026% 2f7963e66b2cc1c1f00f5e2fb24d11fc8f.jpg ", Urikind.absolute));
Image formats supported by Windows Phone7:
Although the beta version supports GIF files, you can get the contents of the file, but this control is not displayed.