title: Scrolling to the end of a single line WPF TextBox
body: <p>This seems like such a simple thing but I just can't get it to work.</p>
  
  <p>I have a single line text box that has a lot of text.  What I want to happen is that whenever the text box receives focus, it scrolls to the end of the text so that it comes into view and the cursor is at the end ready to accept new text.</p>
  
  <p>In the text box's GotFocus event I call textBox.ScrollToEnd().  It looks like all this does is move the cursor to the end of the text box but not actually bring the end into view.</p>
  
  <p>What am I missing?</p>