I think (although I'm not positive) you need to do something like:

Canvas.SetTop(self.bgImage, 132)
Canvas.SetLeft(self.bgImage, 0)

Because they are attached properties which Canvas attaches to the Image.

From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Andrew Evans
Sent: Thursday, August 05, 2010 9:59 AM
To: Discussion of IronPython
Subject: [IronPython] Position an Image on canvas (silverlight)

Hello I am trying to position an Image on my canvas

however it does not seem to work what I am doing

any ideas


        self.bgImage = Image(
            self.canvas.Left(0),
            self.canvas.Top(132),
            Source = BitmapImage(Uri("images/background.jpg", UriKind.Relative))
            )

Cheers

Andrew
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to