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?
ContentDialog.Hide() hide the dialog, then the call of ShowAsync returned. I can't guarantee that the call is same with primary button, but it's enough for me. :)
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.contentdialog.hide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With