aspes
aspes
CC#
Created by aspes on 12/1/2023 in #help
add image programmatically
my images are not showing up when adding them as followed:
c#
Image image = new Image();
BitmapImage bitmap = new BitmapImage(new Uri(imagePath, UriKind.Relative));
image.Source = bitmap;
overlayWindow.Children.Add(image);
c#
Image image = new Image();
BitmapImage bitmap = new BitmapImage(new Uri(imagePath, UriKind.Relative));
image.Source = bitmap;
overlayWindow.Children.Add(image);
am i missing something completely? the path is correct !
2 replies