On 8.7.2010 22:21, Rob Brown-Bayliss wrote:
Hi
I am using visual studio 2010 and the iron python tools.
How do I place an image in a dialog?
I have this in my xaml:
<Image Name="pm_logo" Grid.Row='0'>
<Image.Source>
<BitmapImage UriSource="/Images/pm.png"></BitmapImage>
</Image.Source>
</Image>
and in the project directory I have the Images folder and the png
image. But nothing shows when I run the app.
Is it preferable to add the images in code or is xaml the correct place?
I think this is not IronPython problem. I would try to search Uri
questions on stackoverflow.com - e.g.
http://stackoverflow.com/questions/1874705/pack-uri-and-path-not-resolving-image-in-wpf
--
-- Lukáš
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com