Exemplo n.º 1
0
 public NumberEntryViewConponent() : base(new RectangleF(0, 0, 100, 44))
 {
     inputView = Textview = new NumberEntryView()
     {
         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);
 }
Exemplo n.º 2
0
 public NumberEntryViewConponent()
     : base(new RectangleF(0,0,100,44))
 {
     inputView = Textview = new NumberEntryView (){
         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);
 }