public CredentialsInput()
        {
            Username = new LabelledTextInput("Username:");
            Password = new PasswordField();
            View     = new StackLayout();
            var view = (StackLayout)View;

            view.Items.Add(Username.View);
            view.Items.Add(Password.View);
            view.Orientation = Orientation.Vertical;
        }
Ejemplo n.º 2
0
        public ServerLoginForm()
        {
            _submit      = new Button((s, e) => submit());
            _submit.Text = "Login";
            _credentials = new CredentialsInput();
            _hostName    = new LabelledTextInput("Hostname:");
            View         = new StackLayout();
            var view = (StackLayout)View;

            view.Items.Add(_hostName.View);
            view.Items.Add(_credentials.View);
            view.Items.Add(_submit);
            view.Orientation = Orientation.Vertical;
        }