I’d like to display an image in the window that expands automatically to the dimensions of that image.
Right now, I have a code which shows it but I have to enter height and width of the window and the image to display it properly. Is it possible to do this?
I’d like to display an image in the window that expands automatically to the
Share
You just need to set
SizeToContent="WidthAndHeight"property on the window, see the following proof of concept: