title: WPF TextBox AcceptsReturn = True
body: <p>In WPF Application I have a textbox.</p>
  
  <p>I set its <code>AcceptsReturn</code> Property to <code>true</code>.
  So, I can enter data in multiple lines.</p>
  
  <p>When user press enter in the textbox I want to check :</p>
  
  <pre><code>1) Is the cursor on the last line?
  2) If cursor is on the last line then check if thatLine.Text = Nothing?
  </code></pre>