Images not displayed in silverlight when app is run

Posted by Sean on Stack Overflow See other posts from Stack Overflow or by Sean
Published on 2009-05-16T09:24:47Z Indexed on 2010/05/29 12:12 UTC
Read the original article Hit count: 330

I'm trying to display an image within a Silverlight application but the image does not display when the application is run. When creating the project within Visual Studio I chose the "Automatically generate a test page to host Silverlight at build time" option.

Complete code as an example:

<UserControl x:Class="SilverlightApplication3.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <StackPanel>        
        <Image Source="http://www.beachtownpress.com/db5/00415/beachtownpress.com/_uimages/beach7.jpg" />
    </StackPanel>
</UserControl>

The application appears perfectly within Visual Studio, but when I run the application, the image does not display. Any ideas?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about Silverlight