[IronPython] Position an Image on canvas (silverlight)

Dino Viehland dinov at microsoft.com
Thu Aug 5 19:15:27 CEST 2010

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-bounces at lists.ironpython.com [mailto:users-bounces at 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(
            Source = BitmapImage(Uri("images/background.jpg", UriKind.Relative))


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100805/1019436a/attachment.html>

More information about the Ironpython-users mailing list