I have an image in a WPF window. When I resize the window the image resizes with it. Is it possible to preserve the aspect ratio when the image is resizing, so it doesn't look squashed if the window is too narrow? If so, how?
The default value for Image.Stretch is Uniform, so that would not be happening by default. That means you are specifically doing something to override it. And you don't show what it is you are doing.
– Jon
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
Image.Stretch
isUniform
, so that would not be happening by default. That means you are specifically doing something to override it. And you don't show what it is you are doing. – Jon