title: How to have a vertical scrollbar for a WPF TreeView, but not the horizontal scrollbar?
body: <p>I have a <code>TreeView</code> (the only control) inside a <code>Grid</code>, and I only want to see the vertical scrollbar when the height isn't enough.</p>
  
  <p>To not have the horizontal scrollbar, I have to account for its width to the width of the TreeView, right? But when I only specify the width to stretch the TreeView's width to the width of the <code>Window</code>, no scrollbar appears.</p>
  
  <p>Is there a way to solve this?</p>
  
  <p>Alternatively if I can make it so that I don't have to specify the width and height of the <code>TreeView</code> and it resizes its width when the height isn't enough, to fit the vertical scrollbar, that would be the best.</p>