コード例 #1
0
        public PasswordField(string label) : base()
        {
            Label  = label;
            _label = new Eto.Forms.Label();
            _label.TextBinding.Bind(this, "Label");
            _input = new Eto.Forms.PasswordBox();
            _input.TextBinding.Bind(this, "Text");
            base.View = new Eto.Forms.StackLayout();
            var view = (Eto.Forms.StackLayout)View;

            view.Orientation = Eto.Forms.Orientation.Horizontal;
            view.Items.Add(_label);
            view.Items.Add(_input);
        }
コード例 #2
0
 public Label()
 {
     EtoLabel   = new Eto.Forms.Label();
     EtoControl = EtoLabel;
 }