Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'TestApps')
-rw-r--r--TestApps/Samples/Samples/Windows.cs2
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);