示例#1
0
 public MainForm()
 {
     Controls = new Layout
     {
         new TextBlock
         {
             Text      = "SharpJS - ExaPhaser.WebForms Demo",
             TextAlign = TextAlign.Center,
             FontStyle = new FontStyle
             {
                 FontSize   = 24,
                 FontWeight = FontWeight.Bold
             }
         },
         new TextBlock
         {
             Text = "A random TextBox is below"
         },
         new TextBox
         {
             PlaceholderText = "Placeholder Stuff",
         },
         new Button
         {
             Text    = "OK",
             Command = new DelegateCommand(() => JSLibrary.Alert("You clicked the button"))
         },
         new TextArea
         {
             PlaceholderText = "This awesome placeholder!",
             Rows            = 20
         }
     };
 }
示例#2
0
 public static void Show(string message)
 {
     JSLibrary.Alert(message);
 }