title: How to select default button in wpf dialog?
body: <p>I am creating a WPF dialog. It is like our normal <code>messagebox</code> with <code>ok</code> and <code>cancel</code> button. How to create such a dialog so that the <code>Ok</code> button is selected when the dialog is opened?</p>