Image Not displaying in my image control
This is my code to add an image to the image control:
Dim bitmapImage As New BitmapImage()
Dim uri As New Uri("c:\Users\kgs19\Documents\My Cover Art\Img.png", UriKind.RelativeOrAbsolute)
bitmapImage.UriSource = uri
ImageCoverArt.Source = bitmapImage
ImageCoverArt.Visibility = Visibility.Visible
If I put the file path in the source of the xaml the picture displays. But when I do it programmically it doesn't show. Anything I am missing?
Re: Image Not displaying in my image control
That looks like a WPF question. You’re asking in the VB.Net General forum. You need to use the WPF forum…
https://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF