get absolute file path from image in WPF

Posted by melculetz on Stack Overflow See other posts from Stack Overflow or by melculetz
Published on 2010-04-13T17:09:41Z Indexed on 2010/04/13 17:13 UTC
Read the original article Hit count: 656

Filed under:
|
|
|

I have something like this in my xaml:

<Grid>
    <Image Name="image" Source="../../Images/DefaultImage.png" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></Image>
</Grid>

How can I get (using my code-behind c# code) the absolute path of the image source?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about image