title: Close Content Dialog in Code Behind
body: <p>I have a content dialog with a textbox and I would like to close the dialog when I hit enter in the textbox. Is there a way to achieve that without click on the primary button?</p>