I have an Image control in a WPF Window named "Image1". I am trying to set the picture that is displayed with a png file that I added as a resource.
I am really struggling to figure out how to do it.
I am using VB.Net and I am new to it.
EDIT: I found this while waiting for help:
Image1.Source = New System.Windows.Media.Imaging.BitmapImage(New Uri("/images/imagenamehere", UriKind.Relative))