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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.