Explorar el Código

Added horiz example

Tig hace 1 año
padre
commit
8fe8e5355c
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      UICatalog/Scenarios/Shortcuts.cs

+ 19 - 0
UICatalog/Scenarios/Shortcuts.cs

@@ -124,6 +124,25 @@ public class Shortcuts : Scenario
                             };
                             };
         Application.Top.Add (shortcut3);
         Application.Top.Add (shortcut3);
 
 
+
+        var shortcutH = new Shortcut
+        {
+            Y = Pos.Top (shortcut3),
+            X = Pos.Right (shortcut3),
+            Title = "Horizo_ntal",
+            Key = Key.F10,
+            Text = "Hey!",
+            KeyBindingScope = KeyBindingScope.HotKey,
+            BorderStyle = LineStyle.Dotted
+        };
+        shortcutH.Border.Thickness = new Thickness (0, 0, 1, 0);
+        shortcutH.Accept += (s, e) =>
+                            {
+                                eventSource.Add ($"Accept: {s}");
+                                eventLog.MoveDown ();
+                            };
+        Application.Top.Add (shortcutH);
+
         var shortcut4 = new Shortcut
         var shortcut4 = new Shortcut
         {
         {
             X = 20,
             X = 20,