Alex.Controls.iOS.Controls.EGFloatingTextEntry.commonInit C# (CSharp) Метод

commonInit() публичный Метод

public commonInit ( ) : void
Результат void
		void commonInit(){
			this.floating = false;
			this.hasError = false;

			this.labelTextColor = kDefaultLabelTextColor;
			this.label = new UILabel (CGRect.Empty);
			if(this.labelFont != null)
				this.label.Font = this.labelFont;
			this.label.TextColor = this.labelTextColor;
			this.label.TextAlignment = UITextAlignment.Left;
			this.label.Lines = 1;
			this.label.Layer.MasksToBounds = false;
			this.AddSubview (this.label);

			this.activeBorder = new UIView (CGRect.Empty);
			this.activeBorder.BackgroundColor = kDefaultActiveColor;
			this.activeBorder.Layer.Opacity = 0;
			this.AddSubview (this.activeBorder);

			this.label.AutoAlignAxis (ALAxis.Horizontal, this);
			this.label.AutoPinEdge (ALEdge.Left, ALEdge.Left, this);
			this.label.AutoMatchDimension (ALDimension.Width, ALDimension.Width, this);
			this.label.AutoMatchDimension (ALDimension.Height, ALDimension.Height, this);

			this.activeBorder.AutoPinEdge (ALEdge.Bottom, ALEdge.Bottom, this);
			this.activeBorder.AutoPinEdge (ALEdge.Left, ALEdge.Left, this);
			this.activeBorder.AutoPinEdge (ALEdge.Right, ALEdge.Right, this);
			this.activeBorder.AutoSetDimension (ALDimension.Height, 2);

			NSNotificationCenter.DefaultCenter.AddObserver (
				UITextField.TextFieldTextDidChangeNotification,
				(notification) => {
					this.validate();
				}
			);
		}