Beispiel #1
0
 public override void ComposeTree(ControlsLibrary library, TreeComposer composer)
 {
     composer.Element(
         name: "button",
         body: () => composer.Text(this.Caption),
         events: new TreeComposer.Events
     {
         OnClick = args => library.NotifyButtonClicked(this.Name)
     },
         styles: this.Styles);
 }
 public override void ComposeTree(ControlsLibrary library, TreeComposer composer)
 {
     composer.Element(
         name: "textarea",
         styles: this.Styles,
         events: new TreeComposer.Events
     {
         OnInput = args =>
         {
             this.Text = args.Value.ToString();
             library.NotifyTextTyped(this.Name);
         }
     },
         attributes: new Dictionary <string, string>()
     {
         { "value", this.Text },
     });
 }
 public abstract void ComposeTree(ControlsLibrary library, TreeComposer composer);