Images

Displaying an image is one of the easier tasks in Silverlight. You simply need to add an Image element and set its Source property. However, there are some limitations that you need to understand.

The most obvious limitation is that the Image element supports just two image formats. It has full support for JPEG and fairly broad support for PNG (although it doesn't support PNG files that use 64-bit color or grayscale). The Image element does not support GIF files. There are two reasons for this omission—it allows the Silverlight download to remain that much slimmer, and it avoids potential confusion between the Silverlight animation model and the much more basic (and unsupported) animated GIF feature that's used on the Web.

It's also important ...

Get Pro Silverlight 5 in VB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.