Problem with relative path to image in XAML?
- by Giri
I am trying to reference a PNG file in my applications working directory through XAML with the following:
<Image Name="contactImage">
<Image.Source>
<BitmapImage UriSource="/Images/contact.png">
</Image.Source>
</Image>
Now in my code-behind I try to get the height of the image with…