[dba-VB] Silverlight Image in Listbox

Robert Stewart rls at WeBeDb.com
Tue Jul 5 09:17:54 CDT 2011


Question: I have a silverlight listbox control. It is bound to data 
in a database, not an object.
I have the URL for an image stored in each of the records returned 
from the database.
I need to display that in the list box.

< Image
     x:Name="imgPhoto"
     Height="30"
     Width="30"
     Source="{Binding Path=PhotoURL}"
/>

does not work by itself. The URL stored in the database looks 
something like this: "/images/1_0.jpg"

Does anybody know how to get the image to display?



Robert L. Stewart
www.WeBeDb.com
www.DBGUIDesign.com
www.RLStewartPhotography.com 


More information about the dba-VB mailing list