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?