[IronPython] Position an Image on canvas (silverlight)

Andrew Evans evans.d.andrew at gmail.com
Thu Aug 5 19:52:02 CEST 2010


hey that works great ty very much :D



On Thu, Aug 5, 2010 at 10:15 AM, Dino Viehland <dinov at microsoft.com> wrote:

>  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(
>             self.canvas.Left(0),
>             self.canvas.Top(132),
>             Source = BitmapImage(Uri("images/background.jpg",
> UriKind.Relative))
>             )
>
> Cheers
>
> Andrew
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100805/88486513/attachment.html>


More information about the Ironpython-users mailing list