Exemplo n.º 1
0
        protected override void OnFinishInflate()
        {
            base.OnFinishInflate();
            var inflater = (LayoutInflater)Context.GetSystemService(Context.LayoutInflaterService);
            var layout   = inflater.Inflate(Resource.Layout.Control_EditTextNavigate, this, true);

            _label           = (TextView)layout.FindViewById(Resource.Id.label);
            _label.Focusable = false;
            if (_text != null)
            {
                _label.Text = _text;
            }
            if (_transformationMethod != null)
            {
                _label.TransformationMethod = TransformationMethod;
            }

            _button = (Button)layout.FindViewById(Resource.Id.navigateButton);

            _button.ContentDescription = this.ContentDescription;

            _button.Click += (sender, e) =>
            {
                NavigateCommand.ExecuteIfPossible();
            };
        }