title: How to close ContentDialog on "Enter" in UWP
body: <p>I've been trying to get a simple <code>ContentDialog</code> with a <code>TextBox</code> to close when the user hits <kbd>Enter</kbd> while still in the <code>TextBox</code>. Sadly it doesn't even work without a <code>TextBox</code>, even though the ContentDialog responds to <kbd>Esc</kbd>.</p>
  
  <p>I was hoping there was a way to set a Result from inside the <code>KeyDown</code> Handler of the <code>TextBox</code>, but it seems <code>ContentDialog</code> lacks this?!</p>