Adjust size of window according to screen size/resolution <p>I am designing a window where I have a scroll viewer, but do not want to enable it on a large screen (say on a 22"). I want the scroll bar to be enabled <strong>only when the screen size/ resolution is small</strong> (maybe on a 15" when the dialog wont fit inside it). So I cannot use the following: </p> <pre><code>Window.SizeToContent = "WidthAndHeight" </code></pre> <p>Also, my windows are made up of multiple user controls (so I cannot use the "SizeToContent" in individual User Controls either), hence the size of the window is dynamic (based on user selection).</p> <p>How do I achieve this? Thanks!</p>