diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-08-16 13:33:11 -0500 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-08-16 11:33:11 -0700 |
commit | 3ca06ea14603abded9c15287865a51a3add4e436 (patch) | |
tree | 48d4ddc25000eb9c95c593b19c4f1d3a07eb85d7 /Xamarin.Forms.Platform.WinRT | |
parent | 52dc625bce269e5de4913cc1da444d890bc93d10 (diff) | |
download | xamarin-forms-3ca06ea14603abded9c15287865a51a3add4e436.tar.gz xamarin-forms-3ca06ea14603abded9c15287865a51a3add4e436.tar.bz2 xamarin-forms-3ca06ea14603abded9c15287865a51a3add4e436.zip |
[Windows] Correct enter/esc keypress behaviors for MessageDialog (#292)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/Platform.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/Platform.cs b/Xamarin.Forms.Platform.WinRT/Platform.cs index 99e51e42..a0b1ca58 100644 --- a/Xamarin.Forms.Platform.WinRT/Platform.cs +++ b/Xamarin.Forms.Platform.WinRT/Platform.cs @@ -738,13 +738,13 @@ namespace Xamarin.Forms.Platform.WinRT if (options.Accept != null) { dialog.Commands.Add(new UICommand(options.Accept)); - dialog.DefaultCommandIndex = (uint)dialog.Commands.Count - 1; + dialog.DefaultCommandIndex = 0; } if (options.Cancel != null) { dialog.Commands.Add(new UICommand(options.Cancel)); - dialog.CancelCommandIndex = 0; + dialog.CancelCommandIndex = (uint)dialog.Commands.Count - 1; } IUICommand command = await dialog.ShowAsync(); |