|
-
May 15th, 2025, 10:36 AM
#1
Thread Starter
New Member
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?
-
May 15th, 2025, 11:00 AM
#2
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
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
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
|