diff options
Diffstat (limited to 'TestApps')
-rw-r--r-- | TestApps/Samples/Samples/Windows.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/TestApps/Samples/Samples/Windows.cs b/TestApps/Samples/Samples/Windows.cs index dc236ae4..765faab4 100644 --- a/TestApps/Samples/Samples/Windows.cs +++ b/TestApps/Samples/Samples/Windows.cs @@ -74,6 +74,8 @@ namespace Samples d.Buttons.Add (new DialogButton (Command.Cancel)); d.Buttons.Add (new DialogButton (Command.Ok)); + d.DefaultCommand = custom; + d.CommandActivated += (sender, e) => { if (e.Command == custom) { e.Handled = !MessageDialog.Confirm ("Really close?", Command.Close); |