Silverlight ImageBrush Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • musicmaster890
    New Member
    • Apr 2008
    • 11

    Silverlight ImageBrush Issue

    I'm trying to use the ImageBrush brush in a rectangle to make a picture slideshow in Silverlight, but I'm getting this error everytime I try:

    Silverlight Error Message
    ErrorCode: 3002
    ErrorType: ImageError
    Message: AG_E_NOT_FOUND

    Here's the code that is giving me the trouble:
    Code:
    	<Rectangle Height="180" Width="90" Canvas.Left="10" Canvas.Top="10"
    		Stroke="Black" StrokeThickness="1">
    	<Rectangle.Fill>
    		<ImageBrush ImageSource="photos/image1.PNG"/>
    	</Rectangle.Fill>
    	</Rectangle>
    I can't figure out why its not working- all the references are correct.
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    hey good buddy!

    I am not sure what this is: ErrorCode: 3002. Can you tell us a little more or perhaps post the whole code?

    Just passing through, might be a good idea in case likewise for other members.

    Hope you nail this one down!

    Dököll

    Comment

    Working...