title: how to allow only one line in rich text box
body: <p>I'm using WPF (C#).</p>
  
  <p>I want the user to be able to only type one line in a rich text box (can't press enter key).
  Could anyone tell me how can I set up this kind of rich text box property?</p>