Esempio n. 1
0
 public FormElementTextView() : base(new RectangleF(0, 0, 100, 44))
 {
     inputView = Textview = new UITextField()
     {
         BorderStyle        = UITextBorderStyle.RoundedRect,
         AutocorrectionType = UITextAutocorrectionType.No,
         ReturnKeyType      = UIReturnKeyType.Next,
         ShouldReturn       = delegate {
             if (NextField != null)
             {
                 NextField.BecomeFirstResponder();
             }
             return(true);
         },
     };
     //textview.DisabledBackground = Images.DisabledBackground.Value;
     Textview.ValueChanged += (object sender, EventArgs e) => {
         if (ValueChanged != null)
         {
             ValueChanged(Text);
         }
     };
     Textview.TouchUpOutside += (object sender, EventArgs e) => {
         Textview.ResignFirstResponder();
     };
     this.AddSubview(label);
     this.AddSubview(Textview);
 }
Esempio n. 2
0
 protected override void InitNodes(TreeNode node)
 {
     _ParentNode = AddSectionNode(node, typeof(UField).Name);
     AddSimpleObjectNode(_ParentNode, Super, "SuperField", Super != null ? Super.GetImageName() : "");
     AddSimpleObjectNode(_ParentNode, NextField, "NextField", NextField != null ? NextField.GetImageName() : "");
     base.InitNodes(_ParentNode);
 }