Image Controls in Silverlight Forms

Due to restrictions, the Source property for an image control cannot be set in the XAML. When an image control is used in the Silverlight designer, the URI for the image source must be manually entered into the image control's Source property. The designer automatically configures the Source property in code behind.

If the form will be edited later in Visual Studio and the Source property will be set from Visual Studio, it must be set in code behind, not in XAML. This can be done by adding code, such as the following, to the InitializeImageSources method in MainPage.Proficy.cs:
Image0.Source = new BitmapImage(new Uri(uriString, UriKind.Absolute));
Image sources must come from a Web server (not a file:// style URL). The Web server must have a clientaccesspolicy.dita in its root directory. Thus, if the URL for your image is http://mywebserver:8000/images/animals/kitty.jpg, the client access policy must have a URL of http://mywebserver:8000/clientaccesspolicy.dita.