c# Image image = new Image(); BitmapImage bitmap = new BitmapImage(new Uri(imagePath, UriKind.Relative)); image.Source = bitmap; overlayWindow.Children.Add(image);