-
May 15th, 2025, 12:18 PM
#1
Thread Starter
New Member
At runtime my picture won't display in the 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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|